Skip integration tests when not configured
The new API tests have a load test method, which requires the heat
tempest plugin to be configured to load. This can be called by random
test suite that don't want to run our tests, so let's skip when it's not
configured.
Change-Id: I04024f288aaba5cbb3ada2a5b68d3f0bf56fcf4b
diff --git a/api/test_heat_api.py b/api/test_heat_api.py
index 1b57137..2e219e7 100644
--- a/api/test_heat_api.py
+++ b/api/test_heat_api.py
@@ -30,6 +30,9 @@
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)