summaryrefslogtreecommitdiffstats
path: root/dovetail/tests/unit/test_run.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2019-08-21 06:02:03 -0400
committerxudan <xudan16@huawei.com>2019-08-27 23:44:31 -0400
commitd15825b04fde0b40df1840ae2ec2fab2ac961471 (patch)
tree53a4a343f560175e7a7b3760d268daf2394f6064 /dovetail/tests/unit/test_run.py
parent14a9a43bf675469486a6991976bef24f3540217b (diff)
Add validation disabled/enabled to results.json
Change-Id: I918f85c5ac89cf2745efa8513946a2b5ab8638b1 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/tests/unit/test_run.py')
-rw-r--r--dovetail/tests/unit/test_run.py12
1 files changed, 8 insertions, 4 deletions
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('================================================'),