aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-02-22 16:36:55 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-22 16:36:55 +0000
commitd701e9737f83ff29faba830df426b5a75c9746b1 (patch)
tree8e6299dcd2cfcd3d773cc523cb1c5a387d0d9681 /functest/core
parent01b28068c727b54c34d5b20e3baad4c4e31d7761 (diff)
parentfdbfe10922d09ee3dad407b10be0205082dddce3 (diff)
Merge "Use constants for Functest config file"
Diffstat (limited to 'functest/core')
-rw-r--r--functest/core/vnf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/core/vnf.py b/functest/core/vnf.py
index 05baf432..cf20492b 100644
--- a/functest/core/vnf.py
+++ b/functest/core/vnf.py
@@ -20,6 +20,7 @@ from snaps.openstack.create_project import OpenStackProject
from snaps.openstack.tests import openstack_tests
from functest.core import testcase
+from functest.utils import constants
__author__ = ("Morgan Richomme <morgan.richomme@orange.com>, "
"Valentin Boucher <valentin.boucher@orange.com>")
@@ -46,7 +47,6 @@ class VnfOnBoarding(testcase.TestCase):
"""Base model for VNF test cases."""
__logger = logging.getLogger(__name__)
- env_file = "/home/opnfv/functest/conf/env_file"
def __init__(self, **kwargs):
super(VnfOnBoarding, self).__init__(**kwargs)
@@ -110,7 +110,7 @@ class VnfOnBoarding(testcase.TestCase):
"Prepare VNF: %s, description: %s", self.case_name,
self.tenant_description)
snaps_creds = openstack_tests.get_credentials(
- os_env_file=self.env_file)
+ os_env_file=constants.ENV_FILE)
self.os_project = OpenStackProject(
snaps_creds,