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

Function TestDeleteAgentNotOwned

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

Source from the content-addressed store, hash-verified

68}
69
70func 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
78func postJSON(t *testing.T, url, bearer string, body any) (int, map[string]any) {
79 t.Helper()

Callers

nothing calls this directly

Calls 2

testServerFunction · 0.85
sendJSONFunction · 0.85

Tested by

no test coverage detected