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 json | 5 import json |
6 import logging | 6 import logging |
7 | 7 |
8 from common.waterfall import buildbucket_client | 8 from common.waterfall import buildbucket_client |
9 from common.base_handler import BaseHandler | 9 from common.base_handler import BaseHandler, Permission |
10 from common.base_handler import Permission | |
11 | 10 |
12 | 11 |
13 class TryJob(BaseHandler): | 12 class TryJob(BaseHandler): |
14 """This is for testing a try-job and later the culprit finding recipe. | 13 """This is for testing a try-job and later the culprit finding recipe. |
15 | 14 |
16 No testing is added for this module as it is not for production. | 15 No testing is added for this module as it is not for production. |
17 """ | 16 """ |
18 PERMISSION_LEVEL = Permission.ADMIN | 17 PERMISSION_LEVEL = Permission.ADMIN |
19 | 18 |
20 def _SplitValues(self, values_str): | 19 def _SplitValues(self, values_str): |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 else: | 86 else: |
88 data[key] = { | 87 data[key] = { |
89 'id': build.id, | 88 'id': build.id, |
90 'status': build.status, | 89 'status': build.status, |
91 'url': build.url, | 90 'url': build.url, |
92 } | 91 } |
93 | 92 |
94 return {'data': data} | 93 return {'data': data} |
95 | 94 |
96 return BaseHandler.CreateError('Not implemented yet', 501) | 95 return BaseHandler.CreateError('Not implemented yet', 501) |
OLD | NEW |