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

Function TestSpecOutbound202Declared

internal/httpapi/spec_review_test.go:118–126  ·  view source on GitHub ↗

MED-1 — outbound operations must declare a 202 response (HITL hold).

(t *testing.T)

Source from the content-addressed store, hash-verified

116
117// MED-1 — outbound operations must declare a 202 response (HITL hold).
118func TestSpecOutbound202Declared(t *testing.T) {
119 doc := renderSpec(t)
120 for _, opID := range []string{"sendMessage", "replyToMessage", "forwardMessage", "testAgent"} {
121 resp := operationResponses(t, doc, opID)
122 if _, ok := resp["202"]; !ok {
123 t.Errorf("operation %q is missing a 202 response (HITL hold returns 202 at runtime); declared codes: %v", opID, keysOf(resp))
124 }
125 }
126}
127
128// MED-2 — verifyDomain must declare a 412 response (TXT not yet published).
129func TestSpecVerifyDomain412Declared(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