MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestUpdateAgentNoFields

Function TestUpdateAgentNoFields

internal/httpapi/agents_write_test.go:44–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func 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
52func TestUpdateAgentNotOwned(t *testing.T) {
53 srv := testServer(t)

Callers

nothing calls this directly

Calls 3

testServerFunction · 0.85
sendJSONFunction · 0.85
errCodeFunction · 0.85

Tested by

no test coverage detected