(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func TestDeleteDomainWithAgents(t *testing.T) { |
| 119 | srv := testServer(t) |
| 120 | code, body := sendJSON(t, "DELETE", srv.URL+"/v1/domains/busy.com?confirm=DELETE", "good", nil) |
| 121 | if code != 400 || errCode(body) != "domain_has_agents" { |
| 122 | t.Fatalf("want 400 domain_has_agents, got %d %v", code, body) |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | func TestDeleteDomainNotFound(t *testing.T) { |
| 127 | srv := testServer(t) |
nothing calls this directly
no test coverage detected