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

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

Issue 2104113002: [Findit] Add settings for actions after culprits or suspects are identified. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@group_same_failures
Patch Set: Address chan's comments. Created 4 years, 5 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 waterfall_config.EnableStrictRegexForCompileLinkFailures( 117 waterfall_config.EnableStrictRegexForCompileLinkFailures(
118 'master1', 'builder1')) 118 'master1', 'builder1'))
119 119
120 def testShouldSkipTestTryJobs(self): 120 def testShouldSkipTestTryJobs(self):
121 self.assertFalse( 121 self.assertFalse(
122 waterfall_config.ShouldSkipTestTryJobs('master1', 'builder1')) 122 waterfall_config.ShouldSkipTestTryJobs('master1', 'builder1'))
123 self.assertFalse( 123 self.assertFalse(
124 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder3')) 124 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder3'))
125 self.assertTrue( 125 self.assertTrue(
126 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) 126 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2'))
127 127
128 def testGetActionSettings(self):
129 self.assertEqual(
130 {
131 'cr_notification_build_threshold': 2,
132 'cr_notification_latency_limit_minutes': 30,
133 },
134 waterfall_config.GetActionSettings())
OLDNEW
« no previous file with comments | « appengine/findit/waterfall/test/try_job_pipeline_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