summaryrefslogtreecommitdiffstats
path: root/dovetail/report.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/report.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/report.py')
-rw-r--r--dovetail/report.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index 0918e42a..9a41d299 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -71,11 +71,14 @@ class Report(object):
# egeokun: using a hardcoded string instead of pbr version for
# versioning the result file. The version of the results.json is
# logically independent of the release of Dovetail.
- report_obj['version'] = '2018.09'
+ report_obj['version'] = dt_cfg.dovetail_config.get('version')
report_obj['build_tag'] = dt_cfg.dovetail_config['build_tag']
report_obj['test_date'] =\
datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S UTC')
report_obj['duration'] = duration
+ vnf_type = dt_cfg.dovetail_config.get('vnf_type')
+ if vnf_type:
+ report_obj['vnf_type'] = vnf_type
report_obj['testcases_list'] = []
if not testcase_list: