Esempio n. 1
0
 def test_is_valid_environment_failure(self):
     testcfg = "{0}/tests/configs/rax_without_keyring".format(os.getcwd())
     nova_creds = config.load_config(testcfg)
     result = utils.is_valid_environment('non-existent', nova_creds)
     assert not result
Esempio n. 2
0
 def test_is_valid_environment_success(self):
     testcfg = "{0}/tests/configs/rax_without_keyring".format(os.getcwd())
     nova_creds = config.load_config(testcfg)
     result = utils.is_valid_environment('dfw', nova_creds)
     assert result