Exemple #1
0
def test_get_custom_kubernetes():
    paths = [os.path.dirname(os.path.realpath(__file__))]
    add_takeoff_plugin_paths(paths)

    res = victim.get_kubernetes_name({}, ENV)
    assert res == "pony"
    sys.path.remove(paths[0])
Exemple #2
0
def test_get_custom_eventhub():
    paths = [os.path.dirname(os.path.realpath(__file__))]
    add_takeoff_plugin_paths(paths)

    res = victim.get_eventhub_name({}, ENV)
    assert res == "little"
    sys.path.remove(paths[0])
Exemple #3
0
def test_get_custom_keyvault():
    paths = [os.path.dirname(os.path.realpath(__file__))]
    add_takeoff_plugin_paths(paths)

    res = victim.get_keyvault_name({}, ENV)
    assert res == "Mustaine"
    sys.path.remove(paths[0])
Exemple #4
0
def test_get_custom_resource_group():
    paths = [os.path.dirname(os.path.realpath(__file__))]
    add_takeoff_plugin_paths(paths)

    res = victim.get_resource_group_name({}, ENV)
    assert res == "Dave"
    sys.path.remove(paths[0])
Exemple #5
0
def test_get_custom_eventhub_entity_name():
    paths = [os.path.dirname(os.path.realpath(__file__))]
    add_takeoff_plugin_paths(paths)

    res = victim.get_eventhub_entity_name("", ENV)
    assert res == "Romeo"
    sys.path.remove(paths[0])
Exemple #6
0
def test_add_custom_path():
    paths = [os.path.dirname(os.path.realpath(__file__))]
    add_takeoff_plugin_paths(paths)

    env = find_env_function()

    assert env(conf_ext).branch == "master"
    sys.path.remove(paths[0])