OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import collections | 5 import collections |
6 import json | 6 import json |
7 import os | 7 import os |
8 import urllib | 8 import urllib |
9 import zlib | 9 import zlib |
10 | 10 |
11 from common.retry_http_client import RetryHttpClient | 11 from libs.http.retry_http_client import RetryHttpClient |
12 from model.wf_config import FinditConfig | 12 from model.wf_config import FinditConfig |
13 from model.wf_step import WfStep | 13 from model.wf_step import WfStep |
14 from waterfall import swarming_util | 14 from waterfall import swarming_util |
15 from waterfall import waterfall_config | 15 from waterfall import waterfall_config |
16 from waterfall.swarming_task_request import SwarmingTaskRequest | 16 from waterfall.swarming_task_request import SwarmingTaskRequest |
17 from waterfall.test import wf_testcase | 17 from waterfall.test import wf_testcase |
18 | 18 |
19 | 19 |
20 class SwarmingHttpClient(RetryHttpClient): | 20 class SwarmingHttpClient(RetryHttpClient): |
21 | 21 |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 | 575 |
576 def testGetTagValueInvalidTag(self): | 576 def testGetTagValueInvalidTag(self): |
577 tags = ['a:1', 'b:2'] | 577 tags = ['a:1', 'b:2'] |
578 self.assertIsNone(swarming_util.GetTagValue(tags, 'c')) | 578 self.assertIsNone(swarming_util.GetTagValue(tags, 'c')) |
579 | 579 |
580 def testGenerateIsolatedDataOutputsrefNone(self): | 580 def testGenerateIsolatedDataOutputsrefNone(self): |
581 self.assertEqual({}, swarming_util._GenerateIsolatedData(None)) | 581 self.assertEqual({}, swarming_util._GenerateIsolatedData(None)) |
582 | 582 |
583 def testFetchOutputJsonInfoFromIsolatedServerReturnNone(self): | 583 def testFetchOutputJsonInfoFromIsolatedServerReturnNone(self): |
584 self.assertIsNone(swarming_util._FetchOutputJsonInfoFromIsolatedServer( | 584 self.assertIsNone(swarming_util._FetchOutputJsonInfoFromIsolatedServer( |
585 None, self.http_client)) | 585 None, self.http_client)) |
OLD | NEW |