fix(staging): allow model catalog bootstrap
Staging Backend Quality Gate / validate (push) Successful in 12m33s
Staging Backend Quality Gate / publish (push) Successful in 19m38s

This commit is contained in:
Jesse_Chen
2026-08-07 21:21:32 +08:00
parent 508f3db9c6
commit d1bea7611e
3 changed files with 26 additions and 5 deletions
+4
View File
@@ -66,6 +66,10 @@ test("health endpoint exposes deployment identity for production verification",
assert.match(source, /const defaults = catalog\.models\.filter/);
assert.match(source, /defaults\.length === 1/);
assert.match(source, /default_model_unavailable/);
assert.match(source, /message === "database_model_catalog_unavailable"/);
assert.match(source, /: \{ status: "degraded", message \}/);
assert.match(source, /status: response\.ok \? "ok" : "blocked"/);
assert.match(source, /status === "blocked" \? 503 : 200/);
assert.doesNotMatch(source, /anyEnvCheck\(\["LLM_MODELS_JSON"|OPENAI_API_KEY|DEEPSEEK_API_KEY|LLM_API_KEY/);
});