mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-19 10:19:07 +00:00
Add license metadata to health/readiness endpoint. (#15997)
* health: expose license metadata (available & expiration) in /health/readiness endpoint * test: add health readiness license metadata coverage * test: ensure /health/readiness response includes license metadata * chore: remove standalone license metadata test as requested; existing test covers codepath --------- Co-authored-by: Plan42.ai <robot@plan42.ai>
This commit is contained in:
co-authored by
Plan42.ai
parent
a5b725917c
commit
d89990e0c5
@@ -25,6 +25,10 @@ async def test_health_and_chat_completion():
|
||||
readiness_response = await response.json()
|
||||
assert readiness_response["status"] == "connected"
|
||||
|
||||
# New assertion: license metadata is present
|
||||
assert "license" in readiness_response
|
||||
assert "has_license" in readiness_response["license"]
|
||||
|
||||
# Test liveness endpoint
|
||||
async with session.get("http://0.0.0.0:4000/health/liveness") as response:
|
||||
assert response.status == 200
|
||||
|
||||
Reference in New Issue
Block a user