(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func TestDeleteAgent(t *testing.T) { |
| 63 | srv := testServer(t) |
| 64 | code, body := sendJSON(t, "DELETE", srv.URL+"/v1/agents/support%40acme.com?confirm=DELETE", "good", nil) |
| 65 | if code != 204 || len(body) != 0 { |
| 66 | t.Fatalf("want 204 no body, got %d %v", code, body) |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func TestDeleteAgentNotOwned(t *testing.T) { |
| 71 | srv := testServer(t) |
nothing calls this directly
no test coverage detected