Update the result check for rally tests 40/68940/2
authorxudan <xudan16@huawei.com>
Wed, 20 Nov 2019 08:29:44 +0000 (03:29 -0500)
committerxudan <xudan16@huawei.com>
Thu, 21 Nov 2019 04:13:53 +0000 (23:13 -0500)
JIRA: DOVETAIL-790

Change-Id: Ia3bacf307cd2543820eae86733f76a472e34ead2
Signed-off-by: xudan <xudan16@huawei.com>
docs/release/release-notes/index.rst
dovetail/report.py
dovetail/tests/unit/test_report.py

index 8cfbdfe..59c91ba 100644 (file)
@@ -274,4 +274,4 @@ Useful Links
 
  - Dovetail IRC Channel: #opnfv-dovetail
 
- - `Dovetail Test Configuration <https://git.opnfv.org/dovetail/tree/etc/compliance/ovp.2019.0x.yaml>`_
+ - `Dovetail Test Configuration <https://git.opnfv.org/dovetail/tree/etc/compliance/ovp.2019.12.yaml>`_
index 9523d38..ed3f942 100644 (file)
@@ -336,7 +336,7 @@ class FunctestCrawler(Crawler):
 
     def get_rally_details(self, data):
         try:
-            t_details = data['details'][0]['details']
+            t_details = data['details']['modules'][0]['details']
             tests = len(t_details['success']) + len(t_details['failures'])
             details = {
                 'tests': tests,
index 69cde0d..41d70d2 100644 (file)
@@ -741,12 +741,17 @@ class ReportTesting(unittest.TestCase):
             'criteria': 'criteria',
             'start_date': 'start_date',
             'stop_date': 'stop_date',
-            'details': [{
-                'details': {
-                    'success': ['subt_a'],
-                    'failures': ['subt_b', 'subt_c']
-                }
-            }]
+            'details': {
+                'modules': [
+                    {
+                        'details': {
+                            'success': ['subt_a'],
+                            'failures': ['subt_b', 'subt_c']
+                        },
+                        'module': 'module'
+                    }
+                ]
+            }
         }
 
         mock_json.loads.return_value = data_dict