release: prepare Hulumath v1.2.0
This commit is contained in:
@@ -31,7 +31,11 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
health = json.loads(fetch(args.base_url, "/health/"))
|
||||
if health != {"status": "ok", "database": "ok"}:
|
||||
if (
|
||||
health.get("status") != "ok"
|
||||
or health.get("database") != "ok"
|
||||
or not health.get("version")
|
||||
):
|
||||
raise RuntimeError(f"unexpected health payload: {health}")
|
||||
|
||||
homepage = fetch(args.base_url, "/").decode("utf-8")
|
||||
@@ -49,7 +53,8 @@ def main():
|
||||
asyncio.run(check_websocket(args.ws_url))
|
||||
print(
|
||||
"Production smoke checks passed: "
|
||||
f"health, homepage, admin, {catalog['total']} videos, websocket"
|
||||
f"health v{health['version']}, homepage, admin, "
|
||||
f"{catalog['total']} videos, websocket"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user