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

Unified Diff: appengine/swarming/handlers_endpoints_test.py

Issue 2374463002: Add API for bootstrap and bot_code version (Closed) Base URL: git@github.com:luci/luci-py@master
Patch Set: Make POST 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
« no previous file with comments | « appengine/swarming/handlers_endpoints.py ('k') | appengine/swarming/swarming_rpcs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/handlers_endpoints_test.py
diff --git a/appengine/swarming/handlers_endpoints_test.py b/appengine/swarming/handlers_endpoints_test.py
index 0bf47c529a9eaa52419452411d4506fa5a382fc4..dacf26d1080dfef5ab51989e506f399d2035ffa1 100755
--- a/appengine/swarming/handlers_endpoints_test.py
+++ b/appengine/swarming/handlers_endpoints_test.py
@@ -28,6 +28,7 @@ import handlers_endpoints
import swarming_rpcs
from server import acl
+from server import bot_code
from server import bot_management
from server import config
from server import large
@@ -68,7 +69,10 @@ class ServerApiTest(BaseTest):
def test_details(self):
"""Asserts that server_details returns the correct version."""
response = self.call_api('details')
- self.assertEqual({'server_version': utils.get_app_version()}, response.json)
+ self.assertEqual({
+ 'server_version': utils.get_app_version(),
+ 'bot_version': bot_code.get_bot_version('https://testbed.example.com'),
+ }, response.json)
def test_public_permissions(self):
"""Asserts that permissions respond correctly to an unauthed user."""
« no previous file with comments | « appengine/swarming/handlers_endpoints.py ('k') | appengine/swarming/swarming_rpcs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698