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

Side by Side Diff: appengine/swarming/handlers_bot_test.py

Issue 1939343002: swarming: change meaning of inputs_ref (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: fix templates 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
« no previous file with comments | « appengine/swarming/handlers_bot.py ('k') | appengine/swarming/server/task_request.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # coding: utf-8 2 # coding: utf-8
3 # Copyright 2015 The LUCI Authors. All rights reserved. 3 # Copyright 2015 The LUCI Authors. All rights reserved.
4 # Use of this source code is governed by the Apache v2.0 license that can be 4 # Use of this source code is governed by the Apache v2.0 license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import base64 7 import base64
8 import datetime 8 import datetime
9 import logging 9 import logging
10 import os 10 import os
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 u'command': [u'python', u'run_test.py'], 246 u'command': [u'python', u'run_test.py'],
247 u'dimensions': { 247 u'dimensions': {
248 u'os': u'Amiga', 248 u'os': u'Amiga',
249 u'pool': u'default', 249 u'pool': u'default',
250 }, 250 },
251 u'env': {}, 251 u'env': {},
252 u'extra_args': [], 252 u'extra_args': [],
253 u'grace_period': 30, 253 u'grace_period': 30,
254 u'hard_timeout': 3600, 254 u'hard_timeout': 3600,
255 u'host': u'http://localhost:8080', 255 u'host': u'http://localhost:8080',
256 u'inputs_ref': None, 256 u'isolated': None,
257 u'io_timeout': 1200, 257 u'io_timeout': 1200,
258 u'packages': [{ 258 u'packages': [{
259 u'package_name': u'rm', 259 u'package_name': u'rm',
260 u'version': test_env_handlers.PINNED_PACKAGE_VERSION, 260 u'version': test_env_handlers.PINNED_PACKAGE_VERSION,
261 }], 261 }],
262 u'task_id': task_id, 262 u'task_id': task_id,
263 }, 263 },
264 } 264 }
265 self.assertEqual(expected, response) 265 self.assertEqual(expected, response)
266 response = self.client_get_results(task_id) 266 response = self.client_get_results(task_id)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 u'command': None, 307 u'command': None,
308 u'dimensions': { 308 u'dimensions': {
309 u'os': u'Amiga', 309 u'os': u'Amiga',
310 u'pool': u'default', 310 u'pool': u'default',
311 }, 311 },
312 u'env': {}, 312 u'env': {},
313 u'extra_args': [], 313 u'extra_args': [],
314 u'hard_timeout': 3600, 314 u'hard_timeout': 3600,
315 u'grace_period': 30, 315 u'grace_period': 30,
316 u'host': u'http://localhost:8080', 316 u'host': u'http://localhost:8080',
317 u'inputs_ref': { 317 u'isolated': {
318 u'isolated': u'0123456789012345678901234567890123456789', 318 u'input': u'0123456789012345678901234567890123456789',
319 u'isolatedserver': u'http://localhost:1', 319 u'server': u'http://localhost:1',
320 u'namespace': u'default-gzip', 320 u'namespace': u'default-gzip',
321 }, 321 },
322 u'io_timeout': 1200, 322 u'io_timeout': 1200,
323 u'packages': [{ 323 u'packages': [{
324 u'package_name': u'rm', 324 u'package_name': u'rm',
325 u'version': test_env_handlers.PINNED_PACKAGE_VERSION, 325 u'version': test_env_handlers.PINNED_PACKAGE_VERSION,
326 }], 326 }],
327 u'task_id': task_id, 327 u'task_id': task_id,
328 }, 328 },
329 } 329 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 u'command': None, 428 u'command': None,
429 u'dimensions': { 429 u'dimensions': {
430 u'os': u'Amiga', 430 u'os': u'Amiga',
431 u'pool': u'default', 431 u'pool': u'default',
432 }, 432 },
433 u'env': {}, 433 u'env': {},
434 u'extra_args': [], 434 u'extra_args': [],
435 u'hard_timeout': 3600, 435 u'hard_timeout': 3600,
436 u'grace_period': 30, 436 u'grace_period': 30,
437 u'host': u'http://localhost:8080', 437 u'host': u'http://localhost:8080',
438 u'inputs_ref': { 438 u'isolated': {
439 u'isolated': u'0123456789012345678901234567890123456789', 439 u'input': u'0123456789012345678901234567890123456789',
440 u'isolatedserver': u'http://localhost:1', 440 u'server': u'http://localhost:1',
441 u'namespace': u'default-gzip', 441 u'namespace': u'default-gzip',
442 }, 442 },
443 u'io_timeout': 1200, 443 u'io_timeout': 1200,
444 u'packages': [{ 444 u'packages': [{
445 u'package_name': u'rm', 445 u'package_name': u'rm',
446 u'version': test_env_handlers.PINNED_PACKAGE_VERSION, 446 u'version': test_env_handlers.PINNED_PACKAGE_VERSION,
447 }], 447 }],
448 u'task_id': task_id, 448 u'task_id': task_id,
449 }, 449 },
450 } 450 }
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 self.assertEqual(expected, set(z.namelist())) 874 self.assertEqual(expected, set(z.namelist()))
875 875
876 876
877 if __name__ == '__main__': 877 if __name__ == '__main__':
878 if '-v' in sys.argv: 878 if '-v' in sys.argv:
879 unittest.TestCase.maxDiff = None 879 unittest.TestCase.maxDiff = None
880 logging.basicConfig( 880 logging.basicConfig(
881 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, 881 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL,
882 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') 882 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s')
883 unittest.main() 883 unittest.main()
OLDNEW
« no previous file with comments | « appengine/swarming/handlers_bot.py ('k') | appengine/swarming/server/task_request.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698