aboutsummaryrefslogtreecommitdiffstats
path: root/baro_tests
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-06-19 10:56:36 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-06-19 10:59:41 +0200
commit28629643e330e0025cfce9c842867254998c3d99 (patch)
tree8930a56472b983b295039cfd66f784c9071bb485 /baro_tests
parent0c930f3ac5205b238c583d286f104a69acfc0232 (diff)
Remove all references to /home/opnfv/repos/functest
It completes the previous patch in Functest [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/36163/ Change-Id: Idb334fe2cd394837f34690eb5d6426840424c150 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'baro_tests')
-rw-r--r--baro_tests/collectd.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/baro_tests/collectd.py b/baro_tests/collectd.py
index cd436df6..5ac3c8fe 100644
--- a/baro_tests/collectd.py
+++ b/baro_tests/collectd.py
@@ -16,19 +16,20 @@
import requests
from keystoneclient.v3 import client
import os
+import pkg_resources
import time
import logging
from config_server import *
from tests import *
from opnfv.deployment import factory
from functest.utils import functest_utils
-from functest.utils.constants import CONST
CEILOMETER_NAME = 'ceilometer'
ID_RSA_SRC = '/root/.ssh/id_rsa'
ID_RSA_DST_DIR = '/home/opnfv/.ssh'
ID_RSA_DST = ID_RSA_DST_DIR + '/id_rsa'
-INSTALLER_PARAMS_YAML = os.path.join(CONST.dir_repo_functest, 'functest/ci/installer_params.yaml')
+INSTALLER_PARAMS_YAML = pkg_resources.resource_filename(
+ 'functest', 'ci/installer_params.yaml')
FUEL_IP = functest_utils.get_parameter_from_yaml('fuel.ip', INSTALLER_PARAMS_YAML)
FUEL_USER = functest_utils.get_parameter_from_yaml('fuel.user', INSTALLER_PARAMS_YAML)
FUEL_PW = functest_utils.get_parameter_from_yaml('fuel.password', INSTALLER_PARAMS_YAML)