| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 waterfall_config.GetTrybotForWaterfallBuilder('master1', 'builder1')) | 76 waterfall_config.GetTrybotForWaterfallBuilder('master1', 'builder1')) |
| 77 self.assertEqual( | 77 self.assertEqual( |
| 78 (None, None), | 78 (None, None), |
| 79 waterfall_config.GetTrybotForWaterfallBuilder('master3', 'builder3')) | 79 waterfall_config.GetTrybotForWaterfallBuilder('master3', 'builder3')) |
| 80 | 80 |
| 81 def testGetTryJobSettings(self): | 81 def testGetTryJobSettings(self): |
| 82 self.assertEqual( | 82 self.assertEqual( |
| 83 { | 83 { |
| 84 'server_query_interval_seconds': 60, | 84 'server_query_interval_seconds': 60, |
| 85 'job_timeout_hours': 5, | 85 'job_timeout_hours': 5, |
| 86 'allowed_response_error_times': 5 | 86 'allowed_response_error_times': 5, |
| 87 'max_seconds_look_back_for_group': 86400 |
| 87 }, | 88 }, |
| 88 waterfall_config.GetTryJobSettings()) | 89 waterfall_config.GetTryJobSettings()) |
| 89 | 90 |
| 90 def testGetSwarmingSettings(self): | 91 def testGetSwarmingSettings(self): |
| 91 self.assertEqual( | 92 self.assertEqual( |
| 92 { | 93 { |
| 93 'server_host': 'chromium-swarm.appspot.com', | 94 'server_host': 'chromium-swarm.appspot.com', |
| 94 'default_request_priority': 150, | 95 'default_request_priority': 150, |
| 95 'request_expiration_hours': 20, | 96 'request_expiration_hours': 20, |
| 96 'server_query_interval_seconds': 60, | 97 'server_query_interval_seconds': 60, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 125 self.assertTrue( | 126 self.assertTrue( |
| 126 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) | 127 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) |
| 127 | 128 |
| 128 def testGetActionSettings(self): | 129 def testGetActionSettings(self): |
| 129 self.assertEqual( | 130 self.assertEqual( |
| 130 { | 131 { |
| 131 'cr_notification_build_threshold': 2, | 132 'cr_notification_build_threshold': 2, |
| 132 'cr_notification_latency_limit_minutes': 30, | 133 'cr_notification_latency_limit_minutes': 30, |
| 133 }, | 134 }, |
| 134 waterfall_config.GetActionSettings()) | 135 waterfall_config.GetActionSettings()) |
| OLD | NEW |