Allow keystone auth tests to run from subordinate

Allow a subordinate charm to keystone to run the keystone auth tests.
This commit is contained in:
David Ames
2019-02-19 15:43:19 -08:00
parent 2dce38f2f5
commit c5512defa3
+6 -3
View File
@@ -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)})