diff --git a/python/cuopt_server/cuopt_server/tests/test_cuopt_amr_service.py b/python/cuopt_server/cuopt_server/tests/test_cuopt_amr_service.py index fb89a9315..11f1145a8 100644 --- a/python/cuopt_server/cuopt_server/tests/test_cuopt_amr_service.py +++ b/python/cuopt_server/cuopt_server/tests/test_cuopt_amr_service.py @@ -19,9 +19,14 @@ def test_health(cuoptproc): # noqa + # Normal health check response = client.get("/cuopt/health") assert response.status_code == 200 + # health check with root path + response = client.get("/") + assert response.status_code == 200 + def test_readiness(cuoptproc): # noqa response = client.get("/v2/health/ready") diff --git a/python/cuopt_server/cuopt_server/webserver.py b/python/cuopt_server/cuopt_server/webserver.py index eb8db81bb..6c84445d2 100644 --- a/python/cuopt_server/cuopt_server/webserver.py +++ b/python/cuopt_server/cuopt_server/webserver.py @@ -149,6 +149,11 @@ async def request_exception_handler(request, exc): return exception_handler(exc) +@app.get( + "/", + description="To ping if server is running", + responses=HealthResponse, +) @app.get( "/cuopt/health", description="To ping if server is running",