summaryrefslogtreecommitdiffstats
path: root/dovetail/tests
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2019-11-20 03:29:44 -0500
committerxudan <xudan16@huawei.com>2019-11-20 23:13:53 -0500
commit698806a69c0aa8246b43efe2eb1bb61ba56165c6 (patch)
tree058d9b7c5fc25d76983175c545750764268e71fc /dovetail/tests
parent88dee82da16683c7796036ae6e20a2d7c1f6b162 (diff)
Update the result check for rally tests
JIRA: DOVETAIL-790 Change-Id: Ia3bacf307cd2543820eae86733f76a472e34ead2 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/tests')
-rw-r--r--dovetail/tests/unit/test_report.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/dovetail/tests/unit/test_report.py b/dovetail/tests/unit/test_report.py
index 69cde0d5..41d70d2f 100644
--- a/dovetail/tests/unit/test_report.py
+++ b/dovetail/tests/unit/test_report.py
@@ -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