Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: appengine/findit/waterfall/test/trigger_swarming_task_pipeline_test.py

Issue 1820753002: [Findit] Fix bug when displaying try job result for swamring tests. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import time 5 import time
6 6
7 from testing_utils import testing 7 from testing_utils import testing
8 8
9 from model import wf_analysis_status 9 from model import wf_analysis_status
10 from model.wf_swarming_task import WfSwarmingTask 10 from model.wf_swarming_task import WfSwarmingTask
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 self.assertEqual('new_task_id', new_task_id) 172 self.assertEqual('new_task_id', new_task_id)
173 self.assertEqual(expected_new_request_json, new_request_json) 173 self.assertEqual(expected_new_request_json, new_request_json)
174 174
175 swarming_task = WfSwarmingTask.Get( 175 swarming_task = WfSwarmingTask.Get(
176 master_name, builder_name, build_number, step_name) 176 master_name, builder_name, build_number, step_name)
177 self.assertIsNotNone(swarming_task) 177 self.assertIsNotNone(swarming_task)
178 self.assertEqual('new_task_id', swarming_task.task_id) 178 self.assertEqual('new_task_id', swarming_task.task_id)
179 self.assertEqual(tests, swarming_task.parameters['tests']) 179 self.assertEqual(tests, swarming_task.parameters['tests'])
180 self.assertEqual(_MOCK_SWARMING_SETTINGS['iterations_to_rerun'], 180 self.assertEqual(_MOCK_SWARMING_SETTINGS['iterations_to_rerun'],
181 swarming_task.parameters['iterations_to_rerun']) 181 swarming_task.parameters['iterations_to_rerun'])
182 self.assertEqual('a_tests', swarming_task.parameters['ref_name'])
OLDNEW
« no previous file with comments | « appengine/findit/handlers/test/handlers_util_test.py ('k') | appengine/findit/waterfall/trigger_swarming_task_pipeline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698