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

Function TestDeleteDomainWithAgents

internal/httpapi/domains_test.go:118–124  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func TestDeleteDomainWithAgents(t *testing.T) {
119 srv := testServer(t)
120 code, body := sendJSON(t, "DELETE", srv.URL+"/v1/domains/busy.com?confirm=DELETE", "good", nil)
121 if code != 400 || errCode(body) != "domain_has_agents" {
122 t.Fatalf("want 400 domain_has_agents, got %d %v", code, body)
123 }
124}
125
126func TestDeleteDomainNotFound(t *testing.T) {
127 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