summaryrefslogtreecommitdiffstats
path: root/vnftest/common/constants.py
diff options
context:
space:
mode:
authorMoshe Hoadley <moshehoa@amdocs.com>2019-03-25 07:48:29 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-25 07:48:29 +0000
commitdf7d36416fa78c64abb641d5554a8416f4c23247 (patch)
tree3f405c92151f95db436f049815d48f2c3eb87094 /vnftest/common/constants.py
parent91810def813d33d6e555e9b1909796440c53e378 (diff)
parentae309d644224e1637ece5474abc29a7a6aa6c555 (diff)
Merge "introduce heat context"
Diffstat (limited to 'vnftest/common/constants.py')
-rw-r--r--vnftest/common/constants.py28
1 files changed, 8 insertions, 20 deletions
diff --git a/vnftest/common/constants.py b/vnftest/common/constants.py
index 9634708..a613ff0 100644
--- a/vnftest/common/constants.py
+++ b/vnftest/common/constants.py
@@ -61,26 +61,6 @@ def get_param(key, default=''):
raise
return default
-
-try:
- SERVER_IP = get_param('api.server_ip')
-except KeyError:
- try:
- from pyroute2 import IPDB
- except ImportError:
- SERVER_IP = '172.17.0.1'
- else:
- with IPDB() as ip:
- try:
- SERVER_IP = ip.routes['default'].gateway
- except KeyError:
- # during unittests ip.routes['default'] can be invalid
- SERVER_IP = '127.0.0.1'
-
-if not SERVER_IP:
- SERVER_IP = '127.0.0.1'
-
-
# dir
CONF_DIR = get_param('dir.conf', '/etc/vnftest')
IMAGE_DIR = get_param('dir.images', join(VNFTEST_ROOT_PATH, '../../images/'))
@@ -111,6 +91,14 @@ BASE_URL = 'http://localhost:5000'
ENV_ACTION_API = BASE_URL + '/vnftest/env/action'
ASYNC_TASK_API = BASE_URL + '/vnftest/asynctask'
+# flags
+IS_EXISTING = 'is_existing'
+IS_PUBLIC = 'is_public'
+
# general
TESTCASE_PRE = 'onap_vnftest_'
TESTSUITE_PRE = 'onap_'
+
+
+# OpenStack cloud default config parameters
+OS_CLOUD_DEFAULT_CONFIG = {'verify': False}