fix: allow healthy status in invariants check
This commit is contained in:
@@ -508,11 +508,11 @@ def check_healthz(client: APIClient, results: CheckResults):
|
|||||||
))
|
))
|
||||||
else:
|
else:
|
||||||
status = data.get("status", "unknown") if data else "unknown"
|
status = data.get("status", "unknown") if data else "unknown"
|
||||||
if status == "ok":
|
if status in ["ok", "healthy"]:
|
||||||
results.passed.append(InvariantResult(
|
results.passed.append(InvariantResult(
|
||||||
name=inv_name,
|
name=inv_name,
|
||||||
passed=True,
|
passed=True,
|
||||||
message="City service healthy"
|
message=f"City service healthy: {status}"
|
||||||
))
|
))
|
||||||
else:
|
else:
|
||||||
results.failed.append(InvariantResult(
|
results.failed.append(InvariantResult(
|
||||||
|
|||||||
Reference in New Issue
Block a user