(t *testing.T)
| 86 | } |
| 87 | |
| 88 | func TestRegisterDomainOverCap(t *testing.T) { |
| 89 | srv := testServer(t) |
| 90 | code, body := postJSON(t, srv.URL+"/v1/domains", "overcap", map[string]any{"domain": "new.com"}) |
| 91 | if code != 402 || errCode(body) != "limit_exceeded" { |
| 92 | t.Fatalf("want 402 limit_exceeded, got %d %v", code, body) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | func TestDeleteDomain(t *testing.T) { |
| 97 | srv := testServer(t) |
nothing calls this directly
no test coverage detected