| OLD | NEW |
| 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 recipe_engine.recipe_api import Property | 5 from recipe_engine.recipe_api import Property |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'luci_config', | 8 'luci_config', |
| 9 'recipe_engine/properties' | 9 'recipe_engine/properties' |
| 10 ] | 10 ] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 api.luci_config.get_projects(['build']) + | 27 api.luci_config.get_projects(['build']) + |
| 28 api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent') | 28 api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent') |
| 29 ) | 29 ) |
| 30 | 30 |
| 31 yield ( | 31 yield ( |
| 32 api.test('auth_token') + | 32 api.test('auth_token') + |
| 33 api.properties(auth_token='ya2930948320948203480=') + | 33 api.properties(auth_token='ya2930948320948203480=') + |
| 34 api.luci_config.get_projects(['build']) + | 34 api.luci_config.get_projects(['build']) + |
| 35 api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent') | 35 api.luci_config.get_project_config('build', 'recipes.cfg', 'testcontent') |
| 36 ) | 36 ) |
| 37 |
| 38 protobuf_lines = """ |
| 39 foo: 1 |
| 40 bar: "hi" |
| 41 baz: { |
| 42 the_thing: "hi" |
| 43 } |
| 44 """ |
| 45 |
| 46 yield ( |
| 47 api.test('protobuf') + |
| 48 api.luci_config.get_projects(['build']) + |
| 49 api.luci_config.get_project_config( |
| 50 'build', 'recipes.cfg', '\n'.join(protobuf_lines)) |
| 51 ) |
| OLD | NEW |