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:
Andrew Bernat
2025-10-28 19:21:54 -07:00
committed by GitHub
co-authored by Plan42.ai
parent a5b725917c
commit d89990e0c5
2 changed files with 28 additions and 0 deletions
@@ -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