Add is_testing info and mirror the moved endpoints so we can migrate safely.
This commit is contained in:
parent
b74b7de197
commit
1cce87b136
2 changed files with 6 additions and 1 deletions
|
@ -156,6 +156,8 @@ def v1():
|
|||
return index('')
|
||||
|
||||
|
||||
# TODO(jschorr): Remove this mirrored endpoint once we migrate ELB.
|
||||
@web.route('/health', methods=['GET'])
|
||||
@web.route('/health/instance', methods=['GET'])
|
||||
@no_cache
|
||||
def instance_health():
|
||||
|
@ -166,6 +168,8 @@ def instance_health():
|
|||
return response
|
||||
|
||||
|
||||
# TODO(jschorr): Remove this mirrored endpoint once we migrate pingdom.
|
||||
@web.route('/status', methods=['GET'])
|
||||
@web.route('/health/endtoend', methods=['GET'])
|
||||
@no_cache
|
||||
def endtoend_health():
|
||||
|
|
|
@ -51,7 +51,8 @@ class HealthCheck(object):
|
|||
|
||||
data = {
|
||||
'services': service_statuses,
|
||||
'notes': notes
|
||||
'notes': notes,
|
||||
'is_testing': self.app.config['TESTING']
|
||||
}
|
||||
|
||||
return (data, 200 if is_healthy else 503)
|
||||
|
|
Reference in a new issue