| 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 handlers.crash import crash_config |
| 24 from handlers.crash import fracas_crash |
| 23 from pipeline_wrapper import pipeline_status_ui | 25 from pipeline_wrapper import pipeline_status_ui |
| 24 | 26 |
| 25 | 27 |
| 26 # This is for the default module. | 28 # Default module. |
| 27 default_web_pages_handler_mappings = [ | 29 default_web_pages_handler_mappings = [ |
| 28 ('/version', version.Version), | 30 ('/version', version.Version), |
| 29 ] | 31 ] |
| 30 default_web_application = webapp2.WSGIApplication( | 32 default_web_application = webapp2.WSGIApplication( |
| 31 default_web_pages_handler_mappings, debug=False) | 33 default_web_pages_handler_mappings, debug=False) |
| 32 | 34 |
| 33 | 35 |
| 34 # This is for Cloud Endpoint apis in the default module. | 36 # Cloud Endpoint apis in the default module. |
| 35 api_application = endpoints.api_server([FindItApi]) | 37 api_application = endpoints.api_server([FindItApi]) |
| 36 | 38 |
| 37 | 39 |
| 38 # This is for appengine pipeline status pages in the default module. | 40 # App Engine pipeline status pages in the default module. |
| 39 pipeline_status_handler_mappings = [ | 41 pipeline_status_handler_mappings = [ |
| 40 ('/_ah/pipeline/rpc/tree', pipeline_status_ui._TreeStatusHandler), | 42 ('/_ah/pipeline/rpc/tree', pipeline_status_ui._TreeStatusHandler), |
| 41 ('/_ah/pipeline/rpc/class_paths', pipeline_status_ui._ClassPathListHandler), | 43 ('/_ah/pipeline/rpc/class_paths', pipeline_status_ui._ClassPathListHandler), |
| 42 ('/_ah/pipeline/rpc/list', pipeline_status_ui._RootListHandler), | 44 ('/_ah/pipeline/rpc/list', pipeline_status_ui._RootListHandler), |
| 43 ('/_ah/pipeline(/.+)', pipeline_status_ui._StatusUiHandler), | 45 ('/_ah/pipeline(/.+)', pipeline_status_ui._StatusUiHandler), |
| 44 ] | 46 ] |
| 45 pipeline_status_application = webapp2.WSGIApplication( | 47 pipeline_status_application = webapp2.WSGIApplication( |
| 46 pipeline_status_handler_mappings, debug=False) | 48 pipeline_status_handler_mappings, debug=False) |
| 47 | 49 |
| 48 | 50 |
| 49 # This is for the "waterfall-frontend" module. | 51 # "waterfall-frontend" module. |
| 50 waterfall_frontend_web_pages_handler_mappings = [ | 52 waterfall_frontend_web_pages_handler_mappings = [ |
| 51 ('/build-failure', build_failure.BuildFailure), | 53 ('/build-failure', build_failure.BuildFailure), |
| 52 ('/list-analyses', list_analyses.ListAnalyses), | 54 ('/list-analyses', list_analyses.ListAnalyses), |
| 53 ('/waterfall/build-failure', build_failure.BuildFailure), | 55 ('/waterfall/build-failure', build_failure.BuildFailure), |
| 54 ('/waterfall/check-duplicate-failures', | 56 ('/waterfall/check-duplicate-failures', |
| 55 check_duplicate_failures.CheckDuplicateFailures), | 57 check_duplicate_failures.CheckDuplicateFailures), |
| 56 ('/waterfall/config', config.Configuration), | 58 ('/waterfall/config', config.Configuration), |
| 57 ('/waterfall/failure-log', failure_log.FailureLog), | 59 ('/waterfall/failure-log', failure_log.FailureLog), |
| 58 ('/waterfall/help-triage', help_triage.HelpTriage), | 60 ('/waterfall/help-triage', help_triage.HelpTriage), |
| 59 ('/waterfall/list-analyses', list_analyses.ListAnalyses), | 61 ('/waterfall/list-analyses', list_analyses.ListAnalyses), |
| 60 ('/waterfall/monitor-alerts', monitor_alerts.MonitorAlerts), | 62 ('/waterfall/monitor-alerts', monitor_alerts.MonitorAlerts), |
| 61 ('/waterfall/swarming-task', swarming_task.SwarmingTask), | 63 ('/waterfall/swarming-task', swarming_task.SwarmingTask), |
| 62 ('/waterfall/triage-analysis', triage_analysis.TriageAnalysis), | 64 ('/waterfall/triage-analysis', triage_analysis.TriageAnalysis), |
| 63 ('/waterfall/try-job', try_job.TryJob), | 65 ('/waterfall/try-job', try_job.TryJob), |
| 64 ('/waterfall/try-job-result', try_job_result.TryJobResult), | 66 ('/waterfall/try-job-result', try_job_result.TryJobResult), |
| 65 ('/waterfall/verify-analysis', verify_analysis.VerifyAnalysis), | 67 ('/waterfall/verify-analysis', verify_analysis.VerifyAnalysis), |
| 66 ] | 68 ] |
| 67 waterfall_frontend_web_application = webapp2.WSGIApplication( | 69 waterfall_frontend_web_application = webapp2.WSGIApplication( |
| 68 waterfall_frontend_web_pages_handler_mappings, debug=False) | 70 waterfall_frontend_web_pages_handler_mappings, debug=False) |
| 69 | 71 |
| 70 | 72 |
| 71 # This is for the "waterfall-backend" module. | 73 # "waterfall-backend" module. |
| 72 waterfall_backend_web_pages_handler_mappings = [ | 74 waterfall_backend_web_pages_handler_mappings = [ |
| 73 ('/waterfall/trigger-analyses', trigger_analyses.TriggerAnalyses), | 75 ('/waterfall/trigger-analyses', trigger_analyses.TriggerAnalyses), |
| 74 ] | 76 ] |
| 75 waterfall_backend_web_application = webapp2.WSGIApplication( | 77 waterfall_backend_web_application = webapp2.WSGIApplication( |
| 76 waterfall_backend_web_pages_handler_mappings, debug=False) | 78 waterfall_backend_web_pages_handler_mappings, debug=False) |
| 79 |
| 80 # "crash-frontend" module. |
| 81 crash_frontend_web_pages_handler_mappings = [ |
| 82 ('/crash/config', crash_config.CrashConfig), |
| 83 ('/crash/fracas', fracas_crash.FracasCrash), |
| 84 ] |
| 85 crash_frontend_web_application = webapp2.WSGIApplication( |
| 86 crash_frontend_web_pages_handler_mappings, debug=False) |
| OLD | NEW |