From d15825b04fde0b40df1840ae2ec2fab2ac961471 Mon Sep 17 00:00:00 2001 From: xudan Date: Wed, 21 Aug 2019 06:02:03 -0400 Subject: Add validation disabled/enabled to results.json Change-Id: I918f85c5ac89cf2745efa8513946a2b5ab8638b1 Signed-off-by: xudan --- dovetail/tests/unit/test_run.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'dovetail/tests/unit/test_run.py') diff --git a/dovetail/tests/unit/test_run.py b/dovetail/tests/unit/test_run.py index 497cd06c..0604c8ed 100644 --- a/dovetail/tests/unit/test_run.py +++ b/dovetail/tests/unit/test_run.py @@ -528,7 +528,8 @@ class RunTesting(unittest.TestCase): 'opnfv_ci': True, 'report': True, 'testsuite': 'testsuite', - 'docker_tag': '2.0.0' + 'docker_tag': '2.0.0', + 'no_api_validation': False } with self.assertRaises(SystemExit) as cm: @@ -544,7 +545,8 @@ class RunTesting(unittest.TestCase): mock_get_result.assert_called_once_with() mock_clean.assert_called_once_with() self.assertEquals({'DOVETAIL_HOME': 'dovetail_home', 'DEBUG': 'true', - 'OPNFV_CI': 'true'}, mock_os.environ) + 'OPNFV_CI': 'true', 'validation': 'enabled'}, + mock_os.environ) mock_create_logs.assert_called_once_with() logger_obj.info.assert_has_calls([ call('================================================'), @@ -619,7 +621,8 @@ class RunTesting(unittest.TestCase): 'opnfv_ci': False, 'report': True, 'testsuite': 'testsuite', - 'docker_tag': '2.0.0' + 'docker_tag': '2.0.0', + 'no_api_validation': False } with self.assertRaises(SystemExit) as cm: @@ -636,7 +639,8 @@ class RunTesting(unittest.TestCase): mock_get_result.assert_called_once_with() mock_clean.assert_called_once_with() self.assertEquals({'DOVETAIL_HOME': 'dovetail_home', 'DEBUG': 'true', - 'OPNFV_CI': 'false'}, mock_os.environ) + 'OPNFV_CI': 'false', 'validation': 'enabled'}, + mock_os.environ) mock_create_logs.assert_called_once_with() logger_obj.info.assert_has_calls([ call('================================================'), -- cgit 1.2.3-korg