summaryrefslogtreecommitdiffstats
path: root/dovetail/utils
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-03-27 03:12:57 -0400
committerGeorg Kunz <georg.kunz@ericsson.com>2018-04-04 14:16:59 +0000
commit8b13de4224400f8c2d1f4eb12aedb122c24cf86f (patch)
tree7605924c737e1d432cb7aa946b438be9b51a385b /dovetail/utils
parent698cd3f4246c4e472c306fcad57d8d7b6431333f (diff)
Decoupling Functest Docker config items from source code
There are some special Docker setting item when creating Functest Containers. 1. Remove the extra settings which are required by Functest Danube. 2. Remove the settings for pushing results to DB because Dovetail plans to disable this function. 3. Move the other special Functest settings to config files. JIRA: DOVETAIL-639 Change-Id: Ibc4090b5c0aafdf9ed64e65a9a92e34a12a16df5 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/utils')
-rw-r--r--dovetail/utils/dovetail_config.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/dovetail/utils/dovetail_config.py b/dovetail/utils/dovetail_config.py
index b152cc8a..316be312 100644
--- a/dovetail/utils/dovetail_config.py
+++ b/dovetail/utils/dovetail_config.py
@@ -64,3 +64,15 @@ class DovetailConfig(object):
def update_cmds(cls):
if cls.dovetail_config['report_dest'].startswith("http"):
cls.dovetail_config['bottlenecks']['cmds'][0] += ' --report'
+
+ @classmethod
+ def get_opts(cls, valid_type):
+ if 'opts' in cls.dovetail_config[valid_type].keys():
+ return cls.dovetail_config[valid_type]['opts']
+ return ""
+
+ @classmethod
+ def get_envs(cls, valid_type):
+ if 'envs' in cls.dovetail_config[valid_type].keys():
+ return cls.dovetail_config[valid_type]['envs']
+ return ""