Merge "Skip integration tests when not configured"

This commit is contained in:
Jenkins 2017-01-20 06:56:36 +00:00 committed by Gerrit Code Review
commit 4878a8793b

View File

@ -30,6 +30,9 @@ def load_tests(loader, tests, pattern):
test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR)
conf = config.CONF.heat_plugin
if conf.auth_url is None:
# It's not configured, let's not load tests
return
manager = clients.ClientManager(conf)
endpoint = manager.identity_client.get_endpoint_url(
'orchestration', conf.region)