aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-06-21 08:33:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-06-21 08:33:02 +0000
commit51899de7927bbf6be76639508ae2970046add625 (patch)
treea2cc98e1a98b012e81d82ac8653932c00ea8ba3e /functest/opnfv_tests/openstack/refstack_client/tempest_conf.py
parente7ab53553d719b0fb35b4a74cd0bbc9572c7a48d (diff)
parent997a42438f2253aa9fe640c1cbdd8ea461901948 (diff)
Merge "Remove all references to /home/opnfv/repos/functest"
Diffstat (limited to 'functest/opnfv_tests/openstack/refstack_client/tempest_conf.py')
-rwxr-xr-xfunctest/opnfv_tests/openstack/refstack_client/tempest_conf.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py b/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py
index fbaad589..5d429e7c 100755
--- a/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py
+++ b/functest/opnfv_tests/openstack/refstack_client/tempest_conf.py
@@ -6,7 +6,7 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
import logging
-import os
+import pkg_resources
from functest.opnfv_tests.openstack.tempest import conf_utils
from functest.utils import openstack_utils
@@ -24,9 +24,9 @@ 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.__getattribute__('dir_functest_test'),
- CONST.__getattribute__('refstack_tempest_conf_path'))
+ self.confpath = pkg_resources.resource_filename(
+ 'functest',
+ 'opnfv_tests/openstack/refstack_client/refstack_tempest.conf')
def generate_tempestconf(self):
try: