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

Unified Diff: appengine/swarming/server/bot_management_test.py

Issue 2402543002: Create a BotEvent when a bot is leased from Machine Provider (Closed)
Patch Set: Fix tests Created 4 years, 2 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/server/bot_management.py ('k') | appengine/swarming/server/lease_management.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/server/bot_management_test.py
diff --git a/appengine/swarming/server/bot_management_test.py b/appengine/swarming/server/bot_management_test.py
index aaee4607276c34aea9c99230241f3a05cd38df32..9017d3c955ee4713e0bed6d6aeb0be2b9a837fe2 100755
--- a/appengine/swarming/server/bot_management_test.py
+++ b/appengine/swarming/server/bot_management_test.py
@@ -51,6 +51,8 @@ class BotManagementTest(test_case.TestCase):
'first_seen_ts': now,
'id': 'id1',
'last_seen_ts': now,
+ 'lease_id': None,
+ 'lease_expiration_ts': None,
'quarantined': False,
'state': {u'ram': 65},
'task_id': None,
@@ -75,6 +77,8 @@ class BotManagementTest(test_case.TestCase):
'dimensions': {u'foo': [u'bar'], u'id': [u'id1']},
'event_type': u'bot_connected',
'external_ip': u'8.8.4.4',
+ 'lease_id': None,
+ 'lease_expiration_ts': None,
'message': None,
'quarantined': False,
'state': {u'ram': 65},
@@ -105,6 +109,8 @@ class BotManagementTest(test_case.TestCase):
'first_seen_ts': now,
'id': 'id1',
'last_seen_ts': now,
+ 'lease_id': None,
+ 'lease_expiration_ts': None,
'quarantined': True,
'state': {u'ram': 65},
'task_id': None,
@@ -135,6 +141,8 @@ class BotManagementTest(test_case.TestCase):
'first_seen_ts': now,
'id': 'id1',
'last_seen_ts': now,
+ 'lease_id': None,
+ 'lease_expiration_ts': None,
'quarantined': False,
'state': {u'ram': 65},
'task_id': u'12311',
@@ -151,6 +159,8 @@ class BotManagementTest(test_case.TestCase):
'dimensions': {u'foo': [u'bar'], u'id': [u'id1']},
'event_type': u'request_task',
'external_ip': u'8.8.4.4',
+ 'lease_id': None,
+ 'lease_expiration_ts': None,
'message': None,
'quarantined': False,
'state': {u'ram': 65},
« no previous file with comments | « appengine/swarming/server/bot_management.py ('k') | appengine/swarming/server/lease_management.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698