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

Unified Diff: appengine/swarming/swarming_bot/bot_code/bot_auth_test.py

Issue 2958853002: Propagate name of system service account to the bot. (Closed)
Patch Set: Created 3 years, 6 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: appengine/swarming/swarming_bot/bot_code/bot_auth_test.py
diff --git a/appengine/swarming/swarming_bot/bot_code/bot_auth_test.py b/appengine/swarming/swarming_bot/bot_code/bot_auth_test.py
index 449f1da0ed23c09be74a600d3ce2a799140e3408..1e81af3eb65bdaff693d3d5ce24c200a7ce3dc3e 100755
--- a/appengine/swarming/swarming_bot/bot_code/bot_auth_test.py
+++ b/appengine/swarming/swarming_bot/bot_code/bot_auth_test.py
@@ -57,6 +57,7 @@ class AuthSystemTest(auto_stub.TestCase):
auth_params_path = self.write_auth_params(bot_auth.AuthParams(
swarming_http_headers={'Authorization': 'Bearer bot-own-token'},
swarming_http_headers_exp=exp,
+ system_service_account='none',
task_service_account='bot'))
with bot_auth.AuthSystem(auth_params_path) as auth_sys:
self.assertEqual(
@@ -76,6 +77,7 @@ class AuthSystemTest(auto_stub.TestCase):
auth_params_path = self.write_auth_params(bot_auth.AuthParams(
swarming_http_headers={'Authorization': 'Bearer bot-own-token'},
swarming_http_headers_exp=0,
+ system_service_account='none',
task_service_account='none'))
with bot_auth.AuthSystem(auth_params_path) as auth_sys:
self.assertIsNone(auth_sys.local_auth_context)
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/bot_auth.py ('k') | appengine/swarming/swarming_bot/bot_code/bot_main_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698