From 28629643e330e0025cfce9c842867254998c3d99 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 19 Jun 2017 10:56:36 +0200 Subject: Remove all references to /home/opnfv/repos/functest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- baro_tests/collectd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'baro_tests') 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) -- cgit 1.2.3-korg