From a9db2634af3bf598ddd6f6136125af87c579f266 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Thu, 19 Jan 2017 16:49:59 +0100 Subject: [PATCH] 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 --- heat_integrationtests/api/test_heat_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heat_integrationtests/api/test_heat_api.py b/heat_integrationtests/api/test_heat_api.py index 1b5713737e..2e219e7223 100644 --- a/heat_integrationtests/api/test_heat_api.py +++ b/heat_integrationtests/api/test_heat_api.py @@ -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)