Esempio n. 1
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
Esempio n. 2
0
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)]
Esempio n. 3
0
def remote_run_frameworks():
    return get_all_frameworks(active_only=True)
Esempio n. 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
Esempio n. 5
0
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)
    ]