Merge "[CI][cli] use env variable to determine KeystoneV3"

This commit is contained in:
Jenkins 2016-12-06 01:16:32 +00:00 committed by Gerrit Code Review
commit 33901857fe

View File

@ -50,8 +50,14 @@ class DeploymentTestCase(unittest.TestCase):
config["admin"]["username"])
self.assertEqual(utils.TEST_ENV["OS_PASSWORD"],
config["admin"]["password"])
self.assertEqual(utils.TEST_ENV["OS_TENANT_NAME"],
config["admin"]["tenant_name"])
if "project_name" in config["admin"]:
# keystone v3
self.assertEqual(utils.TEST_ENV["OS_TENANT_NAME"],
config["admin"]["project_name"])
else:
# keystone v2
self.assertEqual(utils.TEST_ENV["OS_TENANT_NAME"],
config["admin"]["tenant_name"])
self.assertEqual(utils.TEST_ENV["OS_AUTH_URL"],
config["auth_url"])