feat: 建立可观测性、容量与恢复验证基线

This commit is contained in:
weijuesen
2026-08-14 14:54:56 +08:00
parent 126c215a6b
commit 1e6a5dbfb8
16 changed files with 398 additions and 3 deletions
+1
View File
@@ -31,6 +31,7 @@ def test_health():
def test_detect_ok():
r = client.post("/detect", files={"file": ("a.png", TINY_PNG, "image/png")})
assert r.status_code == 200
assert r.headers.get("x-request-id")
body = r.json()
assert body["model"] == "mock"
assert body["modelVersion"]