(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func TestUpdateAgentNoFields(t *testing.T) { |
| 45 | srv := testServer(t) |
| 46 | code, body := sendJSON(t, "PATCH", srv.URL+"/v1/agents/support%40acme.com", "good", map[string]any{}) |
| 47 | if code != 400 || errCode(body) != "invalid_request" { |
| 48 | t.Fatalf("want 400 invalid_request, got %d %v", code, body) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func TestUpdateAgentNotOwned(t *testing.T) { |
| 53 | srv := testServer(t) |
nothing calls this directly
no test coverage detected