(test) /health/readiness

This commit is contained in:
ishaan-jaff 2024-01-29 15:27:25 -08:00
parent d974e5971a
commit 6097102c21

View file

@ -70,10 +70,11 @@ async def test_health_readiness():
url = "http://0.0.0.0:4000/health/readiness" url = "http://0.0.0.0:4000/health/readiness"
async with session.get(url) as response: async with session.get(url) as response:
status = response.status status = response.status
response_text = await response.text() response_json = await response.json()
print(response_text) print(response_json)
print() assert "litellm_version" in response_json
assert "status" in response_json
if status != 200: if status != 200:
raise Exception(f"Request did not return a 200 status code: {status}") raise Exception(f"Request did not return a 200 status code: {status}")