(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestUpdateAgentNotOwned(t *testing.T) { |
| 53 | srv := testServer(t) |
| 54 | code, _ := sendJSON(t, "PATCH", srv.URL+"/v1/agents/other%40acme.com", "good", map[string]any{ |
| 55 | "name": "x", |
| 56 | }) |
| 57 | if code != 403 { |
| 58 | t.Fatalf("want 403, got %d", code) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func TestDeleteAgent(t *testing.T) { |
| 63 | srv := testServer(t) |
nothing calls this directly
no test coverage detected