OLD | NEW |
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 Loading... |
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)) |
OLD | NEW |