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

Unified Diff: recipe_modules/bot_update/example.py

Issue 2294413002: bot_update: add --auth-refresh-token-json passthrough for apply_issue (Closed)
Patch Set: More coverage Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: recipe_modules/bot_update/example.py
diff --git a/recipe_modules/bot_update/example.py b/recipe_modules/bot_update/example.py
index 362d1707bf4a0df1b3c8804b1fc857d95fdb31f9..d95fc4d4820c299e4745f7081911962a3904c94a 100644
--- a/recipe_modules/bot_update/example.py
+++ b/recipe_modules/bot_update/example.py
@@ -5,6 +5,7 @@
DEPS = [
'bot_update',
'gclient',
+ 'recipe_engine/platform',
'recipe_engine/path',
'recipe_engine/properties',
]
@@ -30,6 +31,7 @@ def RunSteps(api):
with_branch_heads = api.properties.get('with_branch_heads', False)
refs = api.properties.get('refs', [])
oauth2 = api.properties.get('oauth2', False)
+ oauth2_json = api.properties.get('oauth2_json', False)
root_solution_revision = api.properties.get('root_solution_revision')
suffix = api.properties.get('suffix')
gerrit_no_reset = True if api.properties.get('gerrit_no_reset') else False
@@ -48,6 +50,7 @@ def RunSteps(api):
with_branch_heads=with_branch_heads,
output_manifest=output_manifest,
refs=refs, patch_oauth2=oauth2,
+ oauth2_json=oauth2_json,
clobber=clobber,
root_solution_revision=root_solution_revision,
suffix=suffix,
@@ -78,6 +81,18 @@ def GenTests(api):
yield api.test('trychange_oauth2') + api.properties(
oauth2=True,
)
+ yield api.test('trychange_oauth2_json') + api.properties(
+ mastername='tryserver.chromium.linux',
+ buildername='linux_rel',
+ slavename='totallyaslave-c4',
+ oauth2_json=True,
+ )
+ yield api.test('trychange_oauth2_json_win') + api.properties(
+ mastername='tryserver.chromium.win',
+ buildername='win_rel',
+ slavename='totallyaslave-c4',
+ oauth2_json=True,
+ ) + api.platform('win', 64)
yield api.test('tryjob_fail') + api.properties(
issue=12345,
patchset=654321,
« no previous file with comments | « recipe_modules/bot_update/api.py ('k') | recipe_modules/bot_update/example.expected/trychange_oauth2_json.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698