Exemplo 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
Exemplo 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)]
Exemplo n.º 3
0
def remote_run_frameworks():
    return get_all_frameworks(active_only=True)
Exemplo 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
Exemplo 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)
    ]