Skip to content

Commit

Permalink
Merge pull request #9 from rohanpm/healthcheck-response
Browse files Browse the repository at this point in the history
Tweak healthcheck response body
  • Loading branch information
rohanpm committed Aug 10, 2020
2 parents 95ae0c7 + 7bf13d2 commit 9093894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exodus_gw/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
@app.get("/healthcheck")
def healthcheck():
"""Returns a successful response if the service is running."""
return {"200": "OK"}
return {"detail": "exodus-gw is running"}
2 changes: 1 addition & 1 deletion tests/test_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_healthcheck():
assert gateway.healthcheck() == {"200": "OK"}
assert gateway.healthcheck() == {"detail": "exodus-gw is running"}

0 comments on commit 9093894

Please sign in to comment.