Adopt new config schema for rally 0.10 41/46541/3
authorLinda Wang <wangwulin@huawei.com>
Thu, 2 Nov 2017 02:17:37 +0000 (02:17 +0000)
committerLinda Wang <wangwulin@huawei.com>
Thu, 2 Nov 2017 02:27:22 +0000 (02:27 +0000)
The new config schema is used by Rally 0.10:
https://raw.githubusercontent.com/openstack/rally/master/samples/deployments/existing-keystone-v3.json

JIRA: FUNCTEST-883

Change-Id: I67c0081e23d7a763934ef2f8ce09f122c33af902
Signed-off-by: Linda Wang <wangwulin@huawei.com>
functest/utils/openstack_utils.py

index d8b1cf6..ef32a7e 100644 (file)
@@ -132,7 +132,7 @@ def source_credentials(rc_file):
 def get_credentials_for_rally():
     creds = get_credentials()
     env_cred_dict = get_env_cred_dict()
-    rally_conf = {"type": "ExistingCloud", "admin": {}}
+    rally_conf = {"admin": {}}
     for key in creds:
         if key == 'auth_url':
             rally_conf[key] = creds[key]
@@ -159,6 +159,7 @@ def get_credentials_for_rally():
 
     insecure_key = env_cred_dict.get('OS_INSECURE')
     rally_conf[insecure_key] = os.getenv('OS_INSECURE', '').lower() == 'true'
+    rally_conf = {"openstack": rally_conf}
 
     return rally_conf