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

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

Issue 2926713004: Add support for repeated keys in TaskRequest. (Closed)
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « appengine/swarming/event_mon_metrics.py ('k') | appengine/swarming/local_smoke_test.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 under the Apache License, Version 2.0 4 # Use of this source code is governed under the Apache License, Version 2.0
5 # that can be found in the LICENSE file. 5 # that can be 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 u'version': u'git_revision:deadbeef', 289 u'version': u'git_revision:deadbeef',
290 }, 290 },
291 u'packages': [{ 291 u'packages': [{
292 u'package_name': u'rm', 292 u'package_name': u'rm',
293 u'path': u'bin', 293 u'path': u'bin',
294 u'version': u'git_revision:deadbeef', 294 u'version': u'git_revision:deadbeef',
295 }], 295 }],
296 u'server': u'https://chrome-infra-packages.appspot.com', 296 u'server': u'https://chrome-infra-packages.appspot.com',
297 }, 297 },
298 u'command': [u'python', u'run_test.py'], 298 u'command': [u'python', u'run_test.py'],
299 u'dimensions': { 299 u'dimensions': [
300 u'os': u'Amiga', 300 [u'os', u'Amiga'],
301 u'pool': u'default', 301 [u'pool', u'default'],
302 }, 302 ],
303 u'env': {}, 303 u'env': {},
304 u'extra_args': [], 304 u'extra_args': [],
305 u'grace_period': 30, 305 u'grace_period': 30,
306 u'hard_timeout': 3600, 306 u'hard_timeout': 3600,
307 u'host': u'http://localhost:8080', 307 u'host': u'http://localhost:8080',
308 u'isolated': None, 308 u'isolated': None,
309 u'secret_bytes': None, 309 u'secret_bytes': None,
310 u'io_timeout': 1200, 310 u'io_timeout': 1200,
311 u'outputs': [u'foo', u'path/to/foobar'], 311 u'outputs': [u'foo', u'path/to/foobar'],
312 u'service_account': u'none', 312 u'service_account': u'none',
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 u'version': u'git_revision:deadbeef', 358 u'version': u'git_revision:deadbeef',
359 }, 359 },
360 u'packages': [{ 360 u'packages': [{
361 u'package_name': u'rm', 361 u'package_name': u'rm',
362 u'path': u'bin', 362 u'path': u'bin',
363 u'version': u'git_revision:deadbeef', 363 u'version': u'git_revision:deadbeef',
364 }], 364 }],
365 u'server': u'https://chrome-infra-packages.appspot.com', 365 u'server': u'https://chrome-infra-packages.appspot.com',
366 }, 366 },
367 u'command': [u'python', u'run_test.py'], 367 u'command': [u'python', u'run_test.py'],
368 u'dimensions': { 368 u'dimensions': [
369 u'os': u'Amiga', 369 [u'os', u'Amiga'],
370 u'pool': u'default', 370 [u'pool', u'default'],
371 }, 371 ],
372 u'env': {}, 372 u'env': {},
373 u'extra_args': [], 373 u'extra_args': [],
374 u'grace_period': 30, 374 u'grace_period': 30,
375 u'hard_timeout': 3600, 375 u'hard_timeout': 3600,
376 u'host': u'http://localhost:8080', 376 u'host': u'http://localhost:8080',
377 u'isolated': None, 377 u'isolated': None,
378 u'secret_bytes': None, 378 u'secret_bytes': None,
379 u'io_timeout': 1200, 379 u'io_timeout': 1200,
380 u'outputs': [u'foo', u'path/to/foobar'], 380 u'outputs': [u'foo', u'path/to/foobar'],
381 u'service_account': u'bot', 381 u'service_account': u'bot',
(...skipping 30 matching lines...) Expand all
412 u'version': u'git_revision:deadbeef', 412 u'version': u'git_revision:deadbeef',
413 }, 413 },
414 u'packages': [{ 414 u'packages': [{
415 u'package_name': u'rm', 415 u'package_name': u'rm',
416 u'path': u'bin', 416 u'path': u'bin',
417 u'version': u'git_revision:deadbeef', 417 u'version': u'git_revision:deadbeef',
418 }], 418 }],
419 u'server': u'https://chrome-infra-packages.appspot.com', 419 u'server': u'https://chrome-infra-packages.appspot.com',
420 }, 420 },
421 u'command': [u'python', u'run_test.py'], 421 u'command': [u'python', u'run_test.py'],
422 u'dimensions': { 422 u'dimensions': [
423 u'os': u'Amiga', 423 [u'os', u'Amiga'],
424 u'pool': u'default', 424 [u'pool', u'default'],
425 }, 425 ],
426 u'env': {}, 426 u'env': {},
427 u'extra_args': [], 427 u'extra_args': [],
428 u'grace_period': 30, 428 u'grace_period': 30,
429 u'hard_timeout': 3600, 429 u'hard_timeout': 3600,
430 u'host': u'http://localhost:8080', 430 u'host': u'http://localhost:8080',
431 u'isolated': None, 431 u'isolated': None,
432 u'io_timeout': 1200, 432 u'io_timeout': 1200,
433 u'outputs': [u'foo', u'path/to/foobar'], 433 u'outputs': [u'foo', u'path/to/foobar'],
434 u'secret_bytes': None, 434 u'secret_bytes': None,
435 u'service_account': u'none', 435 u'service_account': u'none',
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 u'version': u'git_revision:deadbeef', 505 u'version': u'git_revision:deadbeef',
506 }, 506 },
507 u'packages': [{ 507 u'packages': [{
508 u'package_name': u'rm', 508 u'package_name': u'rm',
509 u'path': u'bin', 509 u'path': u'bin',
510 u'version': u'git_revision:deadbeef', 510 u'version': u'git_revision:deadbeef',
511 }], 511 }],
512 u'server': u'https://chrome-infra-packages.appspot.com', 512 u'server': u'https://chrome-infra-packages.appspot.com',
513 }, 513 },
514 u'command': [], 514 u'command': [],
515 u'dimensions': { 515 u'dimensions': [
516 u'os': u'Amiga', 516 [u'os', u'Amiga'],
517 u'pool': u'default', 517 [u'pool', u'default'],
518 }, 518 ],
519 u'env': {}, 519 u'env': {},
520 u'extra_args': [], 520 u'extra_args': [],
521 u'hard_timeout': 3600, 521 u'hard_timeout': 3600,
522 u'grace_period': 30, 522 u'grace_period': 30,
523 u'host': u'http://localhost:8080', 523 u'host': u'http://localhost:8080',
524 u'isolated': { 524 u'isolated': {
525 u'input': u'0123456789012345678901234567890123456789', 525 u'input': u'0123456789012345678901234567890123456789',
526 u'server': u'http://localhost:1', 526 u'server': u'http://localhost:1',
527 u'namespace': u'default-gzip', 527 u'namespace': u'default-gzip',
528 }, 528 },
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 u'version': u'git_revision:deadbeef', 664 u'version': u'git_revision:deadbeef',
665 }, 665 },
666 u'packages': [{ 666 u'packages': [{
667 u'package_name': u'rm', 667 u'package_name': u'rm',
668 u'path': u'bin', 668 u'path': u'bin',
669 u'version': u'git_revision:deadbeef', 669 u'version': u'git_revision:deadbeef',
670 }], 670 }],
671 u'server': u'https://chrome-infra-packages.appspot.com', 671 u'server': u'https://chrome-infra-packages.appspot.com',
672 }, 672 },
673 u'command': [], 673 u'command': [],
674 u'dimensions': { 674 u'dimensions': [
675 u'os': u'Amiga', 675 [u'os', u'Amiga'],
676 u'pool': u'default', 676 [u'pool', u'default'],
677 }, 677 ],
678 u'env': {}, 678 u'env': {},
679 u'extra_args': [], 679 u'extra_args': [],
680 u'hard_timeout': 3600, 680 u'hard_timeout': 3600,
681 u'grace_period': 30, 681 u'grace_period': 30,
682 u'host': u'http://localhost:8080', 682 u'host': u'http://localhost:8080',
683 u'isolated': { 683 u'isolated': {
684 u'input': u'0123456789012345678901234567890123456789', 684 u'input': u'0123456789012345678901234567890123456789',
685 u'server': u'http://localhost:1', 685 u'server': u'http://localhost:1',
686 u'namespace': u'default-gzip', 686 u'namespace': u'default-gzip',
687 }, 687 },
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 self.app.get('/bot_code?tok=%s' % tok, status=200) 1136 self.app.get('/bot_code?tok=%s' % tok, status=200)
1137 1137
1138 1138
1139 if __name__ == '__main__': 1139 if __name__ == '__main__':
1140 if '-v' in sys.argv: 1140 if '-v' in sys.argv:
1141 unittest.TestCase.maxDiff = None 1141 unittest.TestCase.maxDiff = None
1142 logging.basicConfig( 1142 logging.basicConfig(
1143 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, 1143 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL,
1144 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') 1144 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s')
1145 unittest.main() 1145 unittest.main()
OLDNEW
« no previous file with comments | « appengine/swarming/event_mon_metrics.py ('k') | appengine/swarming/local_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698