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/wf_testcase.py

Issue 1898493002: [Findit] Adding support for disabling test try jobs for given master/builder (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Addressing comments Created 4 years, 8 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 from google.appengine.api import users 5 from google.appengine.api import users
6 6
7 import copy 7 import copy
8 8
9 from common.findit_testcase import FinditTestCase 9 from common.findit_testcase import FinditTestCase
10 from model.wf_config import FinditConfig 10 from model.wf_config import FinditConfig
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 45
46 _DEFAULT_TRY_BOT_MAPPING = { 46 _DEFAULT_TRY_BOT_MAPPING = {
47 'master1': { 47 'master1': {
48 'builder1': { 48 'builder1': {
49 'mastername': 'tryserver1', 49 'mastername': 'tryserver1',
50 'buildername': 'trybot1', 50 'buildername': 'trybot1',
51 'strict_regex': True, 51 'strict_regex': True,
52 } 52 }
53 }, 53 },
54 'master2': {
55 'builder2': {
56 'mastername': 'tryserver2',
57 'buildername': 'trybot2',
58 'not_run_tests': True
59 },
60 'builder3': {
61 'mastername': 'tryserver2',
62 'buildername': 'trybot2',
63 'not_run_tests': False
64 },
65 },
54 'm': { 66 'm': {
55 'b': { 67 'b': {
56 'mastername': 'tryserver.master', 68 'mastername': 'tryserver.master',
57 'buildername': 'tryserver.builder', 69 'buildername': 'tryserver.builder',
58 } 70 }
59 } 71 }
60 } 72 }
61 73
62 74
63 _DEFAULT_TRY_JOB_SETTINGS = { 75 _DEFAULT_TRY_JOB_SETTINGS = {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 config_data[config_property].update(override_data) 116 config_data[config_property].update(override_data)
105 117
106 FinditConfig.Get().Update(users.User(email='admin@chromium.org'), True, 118 FinditConfig.Get().Update(users.User(email='admin@chromium.org'), True,
107 **config_data) 119 **config_data)
108 120
109 def setUp(self): 121 def setUp(self):
110 super(WaterfallTestCase, self).setUp() 122 super(WaterfallTestCase, self).setUp()
111 self.UpdateUnitTestConfigSettings() 123 self.UpdateUnitTestConfigSettings()
112 124
113 125
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698