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

Function TestSpecRegisterDomain409Declared

internal/httpapi/spec_review_test.go:138–144  ·  view source on GitHub ↗

MED-3 — registerDomain must declare a 409 response (duplicate domain conflict).

(t *testing.T)

Source from the content-addressed store, hash-verified

136
137// MED-3 — registerDomain must declare a 409 response (duplicate domain conflict).
138func TestSpecRegisterDomain409Declared(t *testing.T) {
139 doc := renderSpec(t)
140 resp := operationResponses(t, doc, "registerDomain")
141 if _, ok := resp["409"]; !ok {
142 t.Errorf("registerDomain is missing a 409 response (another owner -> conflict); declared codes: %v", keysOf(resp))
143 }
144}
145
146// MED-5 — response enum policy for GA (see docs/api.md "Versioning & stability"):
147// - A field whose value set is genuinely closed forever (direction: a message is

Callers

nothing calls this directly

Calls 3

renderSpecFunction · 0.85
operationResponsesFunction · 0.85
keysOfFunction · 0.85

Tested by

no test coverage detected