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

Side by Side Diff: scripts/slave/recipe_modules/service_account/example.py

Issue 1954753003: Service account module (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 7 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
(Empty)
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
3 # found in the LICENSE file.
4
5 DEPS = [
6 'recipe_engine/platform',
7 'recipe_engine/raw_io',
8 'service_account',
9 ]
10
11 """Small example of using the service_account api."""
12
13 def RunSteps(api):
14 token = api.service_account.get_token('fake-account')
15
nodir 2016/05/06 20:32:09 two blank lines between top level declarations
RobertoCN 2016/05/06 21:38:11 Done.
16 def GenTests(api):
17 yield (api.test('service_account_win') +
18 api.step_data('get access token',
19 stdout=api.raw_io.output('MockTokenValueThing')) +
20 api.platform('win', 32))
21 yield (api.test('service_account_linux') +
22 api.step_data('get access token',
23 stdout=api.raw_io.output('MockTokenValueThing')) +
24 api.platform('linux', 64))
25
nodir 2016/05/06 20:32:09 this is too many blank lines here
RobertoCN 2016/05/06 21:38:11 Done.
26
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698