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)]
Exemple #3
0
def remote_run_frameworks():
    return get_all_frameworks(active_only=True)
Exemple #4
0
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)
    ]