diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-05-22 07:08:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-22 07:08:13 +0000 |
commit | d4ccab3e956166787dc140b64b5b2a96669aa93b (patch) | |
tree | 054e1a3528a2d9764f0e5f694c5d519df5f8a5d2 /functest/opnfv_tests/openstack/refstack_client/tempest_conf.py | |
parent | 3c8f13cc1c832ec08fde0a3b502fe688f4597259 (diff) | |
parent | a17b5fd4638c75c8e71ff42d8eb0d71e54177424 (diff) |
Merge "Replace CONST.* by getattribute/setattr for refstack"
Diffstat (limited to 'functest/opnfv_tests/openstack/refstack_client/tempest_conf.py')
-rwxr-xr-x | functest/opnfv_tests/openstack/refstack_client/tempest_conf.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py b/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py index 5c04253c..fbaad589 100755 --- a/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py +++ b/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py @@ -24,12 +24,14 @@ class TempestConf(object): self.DEPLOYMENT_ID = conf_utils.get_verifier_deployment_id() self.DEPLOYMENT_DIR = conf_utils.get_verifier_deployment_dir( self.VERIFIER_ID, self.DEPLOYMENT_ID) - self.confpath = os.path.join(CONST.dir_functest_test, - CONST.refstack_tempest_conf_path) + self.confpath = os.path.join( + CONST.__getattribute__('dir_functest_test'), + CONST.__getattribute__('refstack_tempest_conf_path')) def generate_tempestconf(self): try: - openstack_utils.source_credentials(CONST.openstack_creds) + openstack_utils.source_credentials( + CONST.__getattribute__('openstack_creds')) img_flavor_dict = conf_utils.create_tempest_resources( use_custom_images=True, use_custom_flavors=True) conf_utils.configure_tempest_defcore( |