Skip to content

Commit

Permalink
🚑️ Finish by making a test for the healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezzsim committed Jul 17, 2024
1 parent ee1b00e commit 3a42a2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tiled/_tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ..server.app import build_app


@pytest.mark.parametrize("path", ["/", "/docs"])
@pytest.mark.parametrize("path", ["/", "/docs", "/healthz"])
@pytest.mark.asyncio
async def test_meta_routes(path):
app = build_app({})
Expand Down
2 changes: 1 addition & 1 deletion tiled/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async def lifespan(app: FastAPI):

# Healthcheck for deployment to containerized systems, needs to preempt other responses.
# Standardized for Kubernetes, but also used by other systems.
@app.get("/healthz", status_code=201)
@app.get("/healthz", status_code=200)
async def healthz():
return {"status": "ready"}

Expand Down

0 comments on commit 3a42a2d

Please sign in to comment.