| 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 from waterfall import waterfall_config | 5 from waterfall import waterfall_config |
| 6 from waterfall.test import wf_testcase | 6 from waterfall.test import wf_testcase |
| 7 | 7 |
| 8 | 8 |
| 9 class MastersTest(wf_testcase.WaterfallTestCase): | 9 class MastersTest(wf_testcase.WaterfallTestCase): |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 'default_request_priority': 150, | 94 'default_request_priority': 150, |
| 95 'request_expiration_hours': 20, | 95 'request_expiration_hours': 20, |
| 96 'server_query_interval_seconds': 60, | 96 'server_query_interval_seconds': 60, |
| 97 'task_timeout_hours': 23, | 97 'task_timeout_hours': 23, |
| 98 'isolated_server': 'https://isolateserver.appspot.com', | 98 'isolated_server': 'https://isolateserver.appspot.com', |
| 99 'isolated_storage_url': 'isolateserver.storage.googleapis.com', | 99 'isolated_storage_url': 'isolateserver.storage.googleapis.com', |
| 100 'iterations_to_rerun': 10 | 100 'iterations_to_rerun': 10 |
| 101 }, | 101 }, |
| 102 waterfall_config.GetSwarmingSettings()) | 102 waterfall_config.GetSwarmingSettings()) |
| 103 | 103 |
| 104 def testGetDownloadBuildDataSettings(self): |
| 105 self.assertEqual( |
| 106 { |
| 107 'download_interval_seconds': 10, |
| 108 'memcache_master_download_expiration_seconds': 3600, |
| 109 'use_chrome_build_extract': True |
| 110 }, |
| 111 waterfall_config.GetDownloadBuildDataSettings()) |
| 112 |
| 104 def testEnableStrictRegexForCompileLinkFailures(self): | 113 def testEnableStrictRegexForCompileLinkFailures(self): |
| 105 self.assertFalse( | 114 self.assertFalse( |
| 106 waterfall_config.EnableStrictRegexForCompileLinkFailures('m', 'b')) | 115 waterfall_config.EnableStrictRegexForCompileLinkFailures('m', 'b')) |
| 107 self.assertTrue( | 116 self.assertTrue( |
| 108 waterfall_config.EnableStrictRegexForCompileLinkFailures( | 117 waterfall_config.EnableStrictRegexForCompileLinkFailures( |
| 109 'master1', 'builder1')) | 118 'master1', 'builder1')) |
| 110 | 119 |
| 111 def testShouldSkipTestTryJobs(self): | 120 def testShouldSkipTestTryJobs(self): |
| 112 self.assertFalse( | 121 self.assertFalse( |
| 113 waterfall_config.ShouldSkipTestTryJobs('master1', 'builder1')) | 122 waterfall_config.ShouldSkipTestTryJobs('master1', 'builder1')) |
| 114 self.assertFalse( | 123 self.assertFalse( |
| 115 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder3')) | 124 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder3')) |
| 116 self.assertTrue( | 125 self.assertTrue( |
| 117 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) | 126 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) |
| 118 | 127 |
| OLD | NEW |