Add is_testing value to the status endpoint
This commit is contained in:
parent
57810ba36f
commit
dfe143270c
1 changed files with 1 additions and 0 deletions
|
@ -160,6 +160,7 @@ def status():
|
|||
response = jsonify({
|
||||
'db_healthy': db_healthy,
|
||||
'buildlogs_healthy': buildlogs_healthy,
|
||||
'is_testing': app.config['TESTING'],
|
||||
})
|
||||
response.status_code = 200 if db_healthy and buildlogs_healthy else 503
|
||||
|
||||
|
|
Reference in a new issue