From 6d33ad294d6bc56226c86604cded0b70a6952661 Mon Sep 17 00:00:00 2001 From: xudan Date: Tue, 27 Aug 2019 23:26:24 -0400 Subject: Add portal_key_file into all test case yml files Change-Id: If111a8cc56c31ec3e22b090aca92ff56d41f7e01 Signed-off-by: xudan --- dovetail/tests/unit/test_report.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dovetail/tests/unit/test_report.py') 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': [] } ] -- cgit 1.2.3-korg