def find_existing_id_if_exists_or_gen_new(name): for framework in mesos_tools.get_all_frameworks(active_only=True): if framework.name == name: return framework.id else: return uuid.uuid4().hex
def should_not_be_framework_with_name(context, name): clear_mesos_tools_cache() assert name not in [f.name for f in mesos_tools.get_all_frameworks(active_only=True)]
def remote_run_frameworks(): return get_all_frameworks(active_only=True)
def find_existing_id_if_exists_or_gen_new(name): for framework in mesos_tools.get_all_frameworks(active_only=True): if framework.name == name: return framework.id else: return uuid.uuid4().hex
def should_not_be_framework_with_name(context, name): clear_mesos_tools_cache() assert name not in [ f.name for f in mesos_tools.get_all_frameworks(active_only=True) ]