Beispiel #1
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])
Beispiel #2
0
def test_get_default_keyvault():
    res = victim.get_keyvault_name(
        {'azure': {
            'keyvault_naming': 'keyvault{env}'
        }}, ENV)
    assert res == "keyvaultdev"