summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2019-02-08 11:38:08 +0200
committerDan Xu <xudan16@huawei.com>2019-02-14 03:46:40 +0000
commitde39be86dddc6fd590d9dbc9bad084e6be45aa13 (patch)
tree8c5d41f051abe8ca14bb591f993ccf2ee9fd16d4 /dovetail/run.py
parent6b9e62527829867f52a8d18efb09d85b76b35436 (diff)
Dynamic results version and vnf type recognition
This patch makes it able to fetch the version from the testsuite. Furthermore, in case of ONAP test cases it adds the vnf_type to the produced results.json file in order to be parsed from the results portal. Finally, it creates a testuite for ONAP TOSCA related tests. Change-Id: I613358c445cfe62730b98fee5e8c6fba7d322e90 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-xdovetail/run.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index 04df9121..98d70011 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -229,6 +229,10 @@ def get_testcase_list(logger=None, **kwargs):
if testsuite_validation and testarea_validation:
testsuite_yaml = load_testsuite(testsuite)
+ dt_cfg.dovetail_config['version'] = dt_utils.get_value_from_dict(
+ 'version', testsuite_yaml)
+ dt_cfg.dovetail_config['vnf_type'] = dt_utils.get_value_from_dict(
+ 'vnf_type', testsuite_yaml)
testcase_list = dt_testcase.Testcase.get_testcases_for_testsuite(
testsuite_yaml, testarea)
return check_testcase_list(testcase_list, logger)