Skip to content

Commit ecde6b4

Browse files
committed
add test case for healthcheck head request
1 parent 58c07dd commit ecde6b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

binderhub/tests/test_health.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ async def test_basic_health(app):
2727
quota_check["total_pods"]
2828
== quota_check["build_pods"] + quota_check["user_pods"]
2929
)
30+
31+
# HEAD requests should work as well
32+
r = await async_requests.head(app.url + "/health")
33+
assert r.status_code == 200

0 commit comments

Comments
 (0)