Add quality criteria registry
This commit is contained in:
parent
f029d6bba9
commit
a9baf5ae52
15 changed files with 629 additions and 7 deletions
|
|
@ -115,6 +115,26 @@ def test_openapi_groups_agent_facing_endpoints():
|
|||
)
|
||||
|
||||
|
||||
def test_quality_criteria_api_lists_active_registry():
|
||||
client = TestClient(app)
|
||||
|
||||
response = client.get("/quality-criteria")
|
||||
|
||||
assert response.status_code == 200
|
||||
payload = response.json()
|
||||
assert payload["schema_version"] == "quality-criteria-registry/v1"
|
||||
assert payload["criteria_version"] == "repo-scoping-quality-criteria/v1"
|
||||
assert {criterion["id"] for criterion in payload["criteria"]} >= {
|
||||
"RREG-QC-001",
|
||||
"RREG-QC-002",
|
||||
"RREG-QC-005",
|
||||
}
|
||||
assert all(
|
||||
criterion["deterministic_action"] != "approve"
|
||||
for criterion in payload["criteria"]
|
||||
)
|
||||
|
||||
|
||||
def test_openapi_contract_snapshot_for_stable_agent_paths():
|
||||
client = TestClient(app)
|
||||
|
||||
|
|
@ -164,6 +184,12 @@ def test_openapi_contract_snapshot_for_stable_agent_paths():
|
|||
"post": {"tags": ["discovery"], "success_schema": "CapabilityGapResponse"}
|
||||
},
|
||||
"/health": {"get": {"tags": ["health"], "success_schema": "object"}},
|
||||
"/quality-criteria": {
|
||||
"get": {
|
||||
"tags": ["review"],
|
||||
"success_schema": "QualityCriteriaRegistryResponse",
|
||||
}
|
||||
},
|
||||
"/repos": {
|
||||
"get": {"tags": ["repositories"], "success_schema": "list[RepositoryResponse]"},
|
||||
"post": {"tags": ["repositories"], "success_schema": "RepositoryResponse"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue