MED-1 — outbound operations must declare a 202 response (HITL hold).
(t *testing.T)
| 116 | |
| 117 | // MED-1 — outbound operations must declare a 202 response (HITL hold). |
| 118 | func 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). |
| 129 | func TestSpecVerifyDomain412Declared(t *testing.T) { |
nothing calls this directly
no test coverage detected