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

Unified Diff: appengine/swarming/swarming_bot/api/bot_test.py

Issue 2024313003: Send authorization headers when calling Swarming backend. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: rebase Created 4 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
« no previous file with comments | « appengine/swarming/swarming_bot/api/bot.py ('k') | appengine/swarming/swarming_bot/bot_code/bot_auth.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/swarming_bot/api/bot_test.py
diff --git a/appengine/swarming/swarming_bot/api/bot_test.py b/appengine/swarming/swarming_bot/api/bot_test.py
index 93fab4122f1ffe145ce5b7706ec01f2a559b1309..c1ab0bd55c42afdfb1f348518a6082ad3a39700d 100755
--- a/appengine/swarming/swarming_bot/api/bot_test.py
+++ b/appengine/swarming/swarming_bot/api/bot_test.py
@@ -19,6 +19,7 @@ import bot
class TestBot(unittest.TestCase):
def test_bot(self):
obj = bot.Bot(
+ None,
{'dimensions': {'foo': 'bar'}},
'https://localhost:1',
'1234-1a2b3c4-tainted-joe',
@@ -32,14 +33,14 @@ class TestBot(unittest.TestCase):
self.assertEqual('base_dir', obj.base_dir)
def test_bot_call_later(self):
- obj = bot.Bot({}, 'https://localhost:1', '1234-1a2b3c4-tainted-joe',
+ obj = bot.Bot(None, {}, 'https://localhost:1', '1234-1a2b3c4-tainted-joe',
'base_dir', None)
ev = threading.Event()
obj.call_later(0.001, ev.set)
self.assertTrue(ev.wait(1))
def test_bot_call_later_cancel(self):
- obj = bot.Bot({}, 'https://localhost:1', '1234-1a2b3c4-tainted-joe',
+ obj = bot.Bot(None, {}, 'https://localhost:1', '1234-1a2b3c4-tainted-joe',
'base_dir', None)
ev = threading.Event()
obj.call_later(0.1, ev.set)
« no previous file with comments | « appengine/swarming/swarming_bot/api/bot.py ('k') | appengine/swarming/swarming_bot/bot_code/bot_auth.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698