(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestDeleteAgentNotOwned(t *testing.T) { |
| 71 | srv := testServer(t) |
| 72 | code, _ := sendJSON(t, "DELETE", srv.URL+"/v1/agents/other%40acme.com", "good", nil) |
| 73 | if code != 403 { |
| 74 | t.Fatalf("want 403, got %d", code) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func postJSON(t *testing.T, url, bearer string, body any) (int, map[string]any) { |
| 79 | t.Helper() |
nothing calls this directly
no test coverage detected