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

Side by Side Diff: recipe_modules/properties/example.py

Issue 2442173003: Add cleaned up Gerrit props to properties.test_api.tryserver. (Closed)
Patch Set: +nit Created 4 years, 1 month 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
« no previous file with comments | « no previous file | recipe_modules/properties/example.expected/buildbot_tryserver_gerrit.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The LUCI Authors. All rights reserved. 1 # Copyright 2014 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 from recipe_engine.recipe_api import Property 5 from recipe_engine.recipe_api import Property
6 6
7 DEPS = [ 7 DEPS = [
8 'properties', 8 'properties',
9 'step', 9 'step',
10 ] 10 ]
(...skipping 25 matching lines...) Expand all
36 yield api.test('dicts') + api.properties( 36 yield api.test('dicts') + api.properties(
37 test_prop={'key': {'key': 'value', 'other_key': {'key': 'value'}}}, 37 test_prop={'key': {'key': 'value', 'other_key': {'key': 'value'}}},
38 **pd) 38 **pd)
39 39
40 yield ( 40 yield (
41 api.test('exception') + 41 api.test('exception') +
42 api.expect_exception('ValueError') 42 api.expect_exception('ValueError')
43 ) 43 )
44 44
45 # Some default buildbot configurations. 45 # Some default buildbot configurations.
46 yield api.test('buildbot_generic') + api.properties.generic( 46 pd['test_prop'] = None
47 test_prop=None, **pd) 47 yield api.test('buildbot_generic') + api.properties.generic(**pd)
48 yield (api.test('buildbot_scheduled') + 48 yield (api.test('buildbot_scheduled') +
49 api.properties.scheduled(test_prop=None, **pd)) 49 api.properties.scheduled(**pd))
50 yield (api.test('buildbot_git_scheduled') + 50 yield (api.test('buildbot_git_scheduled') +
51 api.properties.git_scheduled(test_prop=None, **pd)) 51 api.properties.git_scheduled(**pd))
52 yield (api.test('buildbot_tryserver') + 52 yield (api.test('buildbot_tryserver') +
53 api.properties.tryserver(test_prop=None, **pd)) 53 api.properties.tryserver(**pd))
54 yield (api.test('buildbot_tryserver_gerrit') + 54 yield (api.test('buildbot_tryserver_gerrit') +
55 api.properties.tryserver(gerrit_project='infra/infra', **pd))
56 yield (api.test('buildbot_tryserver_gerrit_override_gerrit') +
57 api.properties.tryserver(
58 gerrit_project='infra/internal',
59 gerrit_url='https://chrome-internal-review.googlesource.com',
60 **pd))
61 yield (api.test('buildbot_tryserver_gerrit_override_git') +
62 api.properties.tryserver(
63 gerrit_project='infra/hidden',
64 git_url='https://chrome-internal.googlesource.com/infra/hidden',
65 **pd))
66 yield (api.test('buildbot_tryserver_gerrit_override_both') +
67 api.properties.tryserver(
68 gerrit_project='custom',
69 gerrit_url='https://gerrit.my.host',
70 git_url='https://git.my.host/custom',
71 patch_issue=4455,
72 **pd))
73 # TODO(tandrii): remove this one. Use the above version instead.
74 yield (api.test('buildbot_tryserver_gerrit_deprecated') +
55 api.properties.tryserver_gerrit( 75 api.properties.tryserver_gerrit(
56 full_project_name='infra/infra', 76 full_project_name='infra/infra',
57 gerrit_host='pdfium-review.googlesource.com', test_prop=None, 77 gerrit_host='pdfium-review.googlesource.com',
58 **pd)) 78 **pd))
OLDNEW
« no previous file with comments | « no previous file | recipe_modules/properties/example.expected/buildbot_tryserver_gerrit.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698