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

Function TestDeleteDomainRequiresConfirm

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

Source from the content-addressed store, hash-verified

108}
109
110func TestDeleteDomainRequiresConfirm(t *testing.T) {
111 srv := testServer(t)
112 code, body := sendJSON(t, "DELETE", srv.URL+"/v1/domains/acme.com", "good", nil)
113 if code != 400 || errCode(body) != "confirmation_required" {
114 t.Fatalf("want 400 confirmation_required, got %d %v", code, body)
115 }
116}
117
118func TestDeleteDomainWithAgents(t *testing.T) {
119 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