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

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

Issue 2258373002: [Findit] Move configurable parameters in try_job_util.py to config (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 from waterfall import waterfall_config 5 from waterfall import waterfall_config
6 from waterfall.test import wf_testcase 6 from waterfall.test import wf_testcase
7 7
8 8
9 class MastersTest(wf_testcase.WaterfallTestCase): 9 class MastersTest(wf_testcase.WaterfallTestCase):
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 waterfall_config.GetTrybotForWaterfallBuilder('master1', 'builder1')) 76 waterfall_config.GetTrybotForWaterfallBuilder('master1', 'builder1'))
77 self.assertEqual( 77 self.assertEqual(
78 (None, None), 78 (None, None),
79 waterfall_config.GetTrybotForWaterfallBuilder('master3', 'builder3')) 79 waterfall_config.GetTrybotForWaterfallBuilder('master3', 'builder3'))
80 80
81 def testGetTryJobSettings(self): 81 def testGetTryJobSettings(self):
82 self.assertEqual( 82 self.assertEqual(
83 { 83 {
84 'server_query_interval_seconds': 60, 84 'server_query_interval_seconds': 60,
85 'job_timeout_hours': 5, 85 'job_timeout_hours': 5,
86 'allowed_response_error_times': 5 86 'allowed_response_error_times': 5,
87 'max_seconds_look_back_for_group': 86400
87 }, 88 },
88 waterfall_config.GetTryJobSettings()) 89 waterfall_config.GetTryJobSettings())
89 90
90 def testGetSwarmingSettings(self): 91 def testGetSwarmingSettings(self):
91 self.assertEqual( 92 self.assertEqual(
92 { 93 {
93 'server_host': 'chromium-swarm.appspot.com', 94 'server_host': 'chromium-swarm.appspot.com',
94 'default_request_priority': 150, 95 'default_request_priority': 150,
95 'request_expiration_hours': 20, 96 'request_expiration_hours': 20,
96 'server_query_interval_seconds': 60, 97 'server_query_interval_seconds': 60,
(...skipping 28 matching lines...) Expand all
125 self.assertTrue( 126 self.assertTrue(
126 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) 127 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2'))
127 128
128 def testGetActionSettings(self): 129 def testGetActionSettings(self):
129 self.assertEqual( 130 self.assertEqual(
130 { 131 {
131 'cr_notification_build_threshold': 2, 132 'cr_notification_build_threshold': 2,
132 'cr_notification_latency_limit_minutes': 30, 133 'cr_notification_latency_limit_minutes': 30,
133 }, 134 },
134 waterfall_config.GetActionSettings()) 135 waterfall_config.GetActionSettings())
OLDNEW
« no previous file with comments | « appengine/findit/handlers/test/config_test.py ('k') | appengine/findit/waterfall/test/wf_testcase.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698