summaryrefslogtreecommitdiffstats
path: root/dovetail/tests/unit/test_report.py
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail/tests/unit/test_report.py')
-rw-r--r--dovetail/tests/unit/test_report.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/dovetail/tests/unit/test_report.py b/dovetail/tests/unit/test_report.py
index 84bd1f38..f7f8adc8 100644
--- a/dovetail/tests/unit/test_report.py
+++ b/dovetail/tests/unit/test_report.py
@@ -195,6 +195,7 @@ class ReportTesting(unittest.TestCase):
testcase_obj.objective.return_value = 'objective'
mock_checksum.return_value = 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
testcase_obj.is_mandatory = True
+ testcase_obj.portal_key_file.return_value = 'a/b.log'
testcase_obj.vnf_type.return_value = 'tosca'
testcase_obj.sub_testcase.return_value = ['subt_a']
testcase_obj.sub_testcase_passed.return_value = 'PASS'
@@ -215,6 +216,7 @@ class ReportTesting(unittest.TestCase):
'result': 'PASS',
'objective': 'objective',
'mandatory': True,
+ 'portal_key_file': 'a/b.log',
'sub_testcase': [{
'name': 'subt_a',
'result': 'PASS'
@@ -225,6 +227,7 @@ class ReportTesting(unittest.TestCase):
'result': 'Undefined',
'objective': '',
'mandatory': False,
+ 'portal_key_file': '',
'sub_testcase': []
}
]
@@ -256,6 +259,7 @@ class ReportTesting(unittest.TestCase):
testcase_obj.objective.return_value = 'objective'
testcase_obj.is_mandatory = True
testcase_obj.vnf_type.return_value = None
+ testcase_obj.portal_key_file.return_value = 'a/b.log'
testcase_obj.sub_testcase.return_value = ['subt_a']
testcase_obj.sub_testcase_passed.return_value = 'PASS'
mock_testcase.get.side_effect = [testcase_obj, None]
@@ -273,6 +277,7 @@ class ReportTesting(unittest.TestCase):
'result': 'PASS',
'objective': 'objective',
'mandatory': True,
+ 'portal_key_file': 'a/b.log',
'sub_testcase': [{
'name': 'subt_a',
'result': 'PASS'
@@ -283,6 +288,7 @@ class ReportTesting(unittest.TestCase):
'result': 'Undefined',
'objective': '',
'mandatory': False,
+ 'portal_key_file': '',
'sub_testcase': []
}
]
@@ -313,6 +319,7 @@ class ReportTesting(unittest.TestCase):
testcase_obj.passed.return_value = 'PASS'
testcase_obj.objective.return_value = 'objective'
testcase_obj.is_mandatory = True
+ testcase_obj.portal_key_file.return_value = 'a/b.log'
testcase_obj.vnf_type.side_effect = Exception()
testcase_obj.sub_testcase.return_value = ['subt_a']
testcase_obj.sub_testcase_passed.return_value = 'PASS'
@@ -331,6 +338,7 @@ class ReportTesting(unittest.TestCase):
'result': 'PASS',
'objective': 'objective',
'mandatory': True,
+ 'portal_key_file': 'a/b.log',
'sub_testcase': [{
'name': 'subt_a',
'result': 'PASS'
@@ -341,6 +349,7 @@ class ReportTesting(unittest.TestCase):
'result': 'Undefined',
'objective': '',
'mandatory': False,
+ 'portal_key_file': '',
'sub_testcase': []
}
]