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

Function TestDeleteAgent

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

Source from the content-addressed store, hash-verified

60}
61
62func TestDeleteAgent(t *testing.T) {
63 srv := testServer(t)
64 code, body := sendJSON(t, "DELETE", srv.URL+"/v1/agents/support%40acme.com?confirm=DELETE", "good", nil)
65 if code != 204 || len(body) != 0 {
66 t.Fatalf("want 204 no body, got %d %v", code, body)
67 }
68}
69
70func TestDeleteAgentNotOwned(t *testing.T) {
71 srv := testServer(t)

Callers

nothing calls this directly

Calls 2

testServerFunction · 0.85
sendJSONFunction · 0.85

Tested by

no test coverage detected