diff --git a/tiled/_tests/test_routes.py b/tiled/_tests/test_routes.py index bec5f7961..f8a0b78c5 100644 --- a/tiled/_tests/test_routes.py +++ b/tiled/_tests/test_routes.py @@ -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({}) diff --git a/tiled/server/app.py b/tiled/server/app.py index 159873cdb..a21162867 100644 --- a/tiled/server/app.py +++ b/tiled/server/app.py @@ -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"}