MED-2 — verifyDomain must declare a 412 response (TXT not yet published).
(t *testing.T)
| 127 | |
| 128 | // MED-2 — verifyDomain must declare a 412 response (TXT not yet published). |
| 129 | func 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). |
| 138 | func TestSpecRegisterDomain409Declared(t *testing.T) { |
nothing calls this directly
no test coverage detected