| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 endpoints | 5 import endpoints |
| 6 import webapp2 | 6 import webapp2 |
| 7 | 7 |
| 8 from findit_api import FindItApi | 8 from findit_api import FindItApi |
| 9 from handlers import build_failure | 9 from handlers import build_failure |
| 10 from handlers import check_duplicate_failures | 10 from handlers import check_duplicate_failures |
| 11 from handlers import config | 11 from handlers import config |
| 12 from handlers import failure_log | 12 from handlers import failure_log |
| 13 from handlers import help_triage | 13 from handlers import help_triage |
| 14 from handlers import list_analyses | 14 from handlers import list_analyses |
| 15 from handlers import monitor_alerts | 15 from handlers import monitor_alerts |
| 16 from handlers import swarming_task | 16 from handlers import swarming_task |
| 17 from handlers import triage_analysis | 17 from handlers import triage_analysis |
| 18 from handlers import trigger_analyses | 18 from handlers import trigger_analyses |
| 19 from handlers import try_job | 19 from handlers import try_job |
| 20 from handlers import try_job_result | 20 from handlers import try_job_result |
| 21 from handlers import verify_analysis | 21 from handlers import verify_analysis |
| 22 from handlers import version | 22 from handlers import version |
| 23 from pipeline_wrapper import pipeline_status_ui | 23 from pipeline_wrapper import pipeline_status_ui |
| 24 | 24 |
| 25 | 25 |
| 26 # This is for web pages in the frontend. | 26 # This is for the default module. |
| 27 web_pages_handler_mappings = [ | 27 default_web_pages_handler_mappings = [ |
| 28 ('/build-failure', build_failure.BuildFailure), | |
| 29 ('/check-duplicate-failures', | |
| 30 check_duplicate_failures.CheckDuplicateFailures), | |
| 31 ('/config', config.Configuration), | |
| 32 ('/failure-log', failure_log.FailureLog), | |
| 33 ('/help-triage', help_triage.HelpTriage), | |
| 34 ('/list-analyses', list_analyses.ListAnalyses), | |
| 35 ('/monitor-alerts', monitor_alerts.MonitorAlerts), | |
| 36 ('/swarming-task', swarming_task.SwarmingTask), | |
| 37 ('/triage-analysis', triage_analysis.TriageAnalysis), | |
| 38 ('/try-job', try_job.TryJob), | |
| 39 ('/try-job-result', try_job_result.TryJobResult), | |
| 40 ('/verify-analysis', verify_analysis.VerifyAnalysis), | |
| 41 ('/version', version.Version), | 28 ('/version', version.Version), |
| 42 ] | 29 ] |
| 43 web_application = webapp2.WSGIApplication( | 30 default_web_application = webapp2.WSGIApplication( |
| 44 web_pages_handler_mappings, debug=False) | 31 default_web_pages_handler_mappings, debug=False) |
| 45 | 32 |
| 46 | 33 |
| 47 # This is for Cloud Endpoint apis. | 34 # This is for Cloud Endpoint apis in the default module. |
| 48 api_application = endpoints.api_server([FindItApi]) | 35 api_application = endpoints.api_server([FindItApi]) |
| 49 | 36 |
| 50 | 37 |
| 51 # This is for appengine pipeline status pages. | 38 # This is for appengine pipeline status pages in the default module. |
| 52 pipeline_status_handler_mappings = [ | 39 pipeline_status_handler_mappings = [ |
| 53 ('/_ah/pipeline/rpc/tree', pipeline_status_ui._TreeStatusHandler), | 40 ('/_ah/pipeline/rpc/tree', pipeline_status_ui._TreeStatusHandler), |
| 54 ('/_ah/pipeline/rpc/class_paths', pipeline_status_ui._ClassPathListHandler), | 41 ('/_ah/pipeline/rpc/class_paths', pipeline_status_ui._ClassPathListHandler), |
| 55 ('/_ah/pipeline/rpc/list', pipeline_status_ui._RootListHandler), | 42 ('/_ah/pipeline/rpc/list', pipeline_status_ui._RootListHandler), |
| 56 ('/_ah/pipeline(/.+)', pipeline_status_ui._StatusUiHandler), | 43 ('/_ah/pipeline(/.+)', pipeline_status_ui._StatusUiHandler), |
| 57 ] | 44 ] |
| 58 pipeline_status_application = webapp2.WSGIApplication( | 45 pipeline_status_application = webapp2.WSGIApplication( |
| 59 pipeline_status_handler_mappings, debug=False) | 46 pipeline_status_handler_mappings, debug=False) |
| 60 | 47 |
| 61 | 48 |
| 62 # This is for task queue running in the backend. | 49 # This is for the "waterfall-frontend" module. |
| 63 backend_handler_mappings = [ | 50 waterfall_frontend_web_pages_handler_mappings = [ |
| 64 ('/trigger-analyses', trigger_analyses.TriggerAnalyses), | 51 ('/build-failure', build_failure.BuildFailure), |
| 52 ('/list-analyses', list_analyses.ListAnalyses), |
| 53 ('/waterfall/build-failure', build_failure.BuildFailure), |
| 54 ('/waterfall/check-duplicate-failures', |
| 55 check_duplicate_failures.CheckDuplicateFailures), |
| 56 ('/waterfall/config', config.Configuration), |
| 57 ('/waterfall/failure-log', failure_log.FailureLog), |
| 58 ('/waterfall/help-triage', help_triage.HelpTriage), |
| 59 ('/waterfall/list-analyses', list_analyses.ListAnalyses), |
| 60 ('/waterfall/monitor-alerts', monitor_alerts.MonitorAlerts), |
| 61 ('/waterfall/swarming-task', swarming_task.SwarmingTask), |
| 62 ('/waterfall/triage-analysis', triage_analysis.TriageAnalysis), |
| 63 ('/waterfall/try-job', try_job.TryJob), |
| 64 ('/waterfall/try-job-result', try_job_result.TryJobResult), |
| 65 ('/waterfall/verify-analysis', verify_analysis.VerifyAnalysis), |
| 65 ] | 66 ] |
| 66 backend_application = webapp2.WSGIApplication( | 67 waterfall_frontend_web_application = webapp2.WSGIApplication( |
| 67 backend_handler_mappings, debug=False) | 68 waterfall_frontend_web_pages_handler_mappings, debug=False) |
| 69 |
| 70 |
| 71 # This is for the "waterfall-backend" module. |
| 72 waterfall_backend_web_pages_handler_mappings = [ |
| 73 ('/waterfall/trigger-analyses', trigger_analyses.TriggerAnalyses), |
| 74 ] |
| 75 waterfall_backend_web_application = webapp2.WSGIApplication( |
| 76 waterfall_backend_web_pages_handler_mappings, debug=False) |
| OLD | NEW |