From c5512defa31f0521e18293d0eb0e9430caa208c6 Mon Sep 17 00:00:00 2001 From: David Ames Date: Tue, 19 Feb 2019 15:43:19 -0800 Subject: [PATCH] Allow keystone auth tests to run from subordinate Allow a subordinate charm to keystone to run the keystone auth tests. --- zaza/charm_tests/keystone/tests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zaza/charm_tests/keystone/tests.py b/zaza/charm_tests/keystone/tests.py index ac2828d..51f5e48 100644 --- a/zaza/charm_tests/keystone/tests.py +++ b/zaza/charm_tests/keystone/tests.py @@ -193,7 +193,8 @@ class AuthenticationAuthorizationTest(BaseKeystoneTest): return with self.config_change( {'preferred-api-version': self.default_api_version}, - {'preferred-api-version': '3'}): + {'preferred-api-version': '3'}, + application_name="keystone"): for ip in self.keystone_ips: try: logging.info('keystone IP {}'.format(ip)) @@ -225,7 +226,8 @@ class AuthenticationAuthorizationTest(BaseKeystoneTest): return with self.config_change( {'preferred-api-version': self.default_api_version}, - {'preferred-api-version': '3'}): + {'preferred-api-version': '3'}, + application_name="keystone"): for ip in self.keystone_ips: openrc = { 'API_VERSION': 3, @@ -320,7 +322,8 @@ class AuthenticationAuthorizationTest(BaseKeystoneTest): } with self.config_change( {'preferred-api-version': self.default_api_version}, - {'preferred-api-version': '3'}): + {'preferred-api-version': '3'}, + application_name="keystone"): for ip in self.keystone_ips: openrc.update( {'OS_AUTH_URL': 'http://{}:5000/v3'.format(ip)})