fix(awooop): 移除 tenants 公開內部狀態碼
All checks were successful
Code Review / ai-code-review (push) Successful in 14s
CD Pipeline / tests (push) Successful in 1m33s
CD Pipeline / build-and-deploy (push) Successful in 4m1s
CD Pipeline / post-deploy-checks (push) Successful in 1m35s

This commit is contained in:
Your Name
2026-06-15 03:19:09 +08:00
parent 6a2ceb7fa6
commit 8eff94a4f5
6 changed files with 115 additions and 35 deletions

View File

@@ -90,7 +90,21 @@ def test_tenant_asset_inventory_merges_products_routes_and_repos() -> None:
inventory_payload = json.dumps(inventory, ensure_ascii=False)
assert "owenhytsai" not in inventory_payload
assert "nexu-io" not in inventory_payload
assert "blocked_waiting_" not in inventory_payload
assert "observe_scope_review" not in inventory_payload
assert all(marker not in inventory_payload for marker in FORBIDDEN_PUBLIC_MARKERS)
assert {item["risk"] for item in inventory["source_repos"]}.issubset(
{"high", "medium", "low", "unknown"}
)
assert {item["readiness_state"] for item in inventory["source_repos"]}.issubset(
{
"need_refs_evidence",
"need_target_decision",
"need_internal_remote_decision",
"need_scope_review",
"need_owner_evidence",
}
)
assert all(item["runtime_gate_count"] == 0 for item in inventory["source_repos"])
assert all(item["action_button_count"] == 0 for item in inventory["public_routes"])
assert all(item["runtime_gate_count"] == 0 for item in inventory["products"])