diff options
author | 2019-11-17 12:46:28 +0100 | |
---|---|---|
committer | 2019-11-17 12:49:12 +0100 | |
commit | fc440a7257f5bd411094fb826a642bfed475988c (patch) | |
tree | c5dd1bca89f45862245888ffe965433ce2c05746 | |
parent | 44681729d9ef3a46934f2b36a5ab0b45c18d5249 (diff) |
Fix details in Rally
self.details is now a dict and summary is located under root [1].
[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-hunter-rally_sanity-run/422/console
Change-Id: Ic89e674b2f6660704b9dafe6070a224753e2af46
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 07b6f59f209d4bdf7b9a722ac348f87f3bfce320)
-rw-r--r-- | functest/opnfv_tests/openstack/rally/rally.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py index 6a162de22..ed70fcb05 100644 --- a/functest/opnfv_tests/openstack/rally/rally.py +++ b/functest/opnfv_tests/openstack/rally/rally.py @@ -95,7 +95,6 @@ class RallyBase(singlevm.VmReady2): self.smoke = None self.start_time = None self.result = None - self.details = None self.compute_cnt = 0 self.flavor_alt = None self.tests = [] @@ -595,10 +594,10 @@ class RallyBase(singlevm.VmReady2): LOGGER.info("Rally '%s' success_rate is %s%% in %s/%s modules", self.case_name, success_rate, nb_modules, len(self.summary)) - payload.append({'summary': {'duration': total_duration, - 'nb tests': total_nb_tests, - 'nb success': success_rate}}) - self.details = payload + self.details['summary'] = {'duration': total_duration, + 'nb tests': total_nb_tests, + 'nb success': success_rate} + self.details["modules"] = payload @staticmethod def export_task(file_name, export_type="html"): |