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

Function TestUpdateAgentNotOwned

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

Source from the content-addressed store, hash-verified

50}
51
52func 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
62func TestDeleteAgent(t *testing.T) {
63 srv := testServer(t)

Callers

nothing calls this directly

Calls 2

testServerFunction · 0.85
sendJSONFunction · 0.85

Tested by

no test coverage detected