MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestSpecVerifyDomain412Declared

Function TestSpecVerifyDomain412Declared

internal/httpapi/spec_review_test.go:129–135  ·  view source on GitHub ↗

MED-2 — verifyDomain must declare a 412 response (TXT not yet published).

(t *testing.T)

Source from the content-addressed store, hash-verified

127
128// MED-2 — verifyDomain must declare a 412 response (TXT not yet published).
129func TestSpecVerifyDomain412Declared(t *testing.T) {
130 doc := renderSpec(t)
131 resp := operationResponses(t, doc, "verifyDomain")
132 if _, ok := resp["412"]; !ok {
133 t.Errorf("verifyDomain is missing a 412 response (missing TXT returns 412 at runtime); declared codes: %v", keysOf(resp))
134 }
135}
136
137// MED-3 — registerDomain must declare a 409 response (duplicate domain conflict).
138func TestSpecRegisterDomain409Declared(t *testing.T) {

Callers

nothing calls this directly

Calls 3

renderSpecFunction · 0.85
operationResponsesFunction · 0.85
keysOfFunction · 0.85

Tested by

no test coverage detected