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

Function TestRegisterDomainOverCap

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

Source from the content-addressed store, hash-verified

86}
87
88func TestRegisterDomainOverCap(t *testing.T) {
89 srv := testServer(t)
90 code, body := postJSON(t, srv.URL+"/v1/domains", "overcap", map[string]any{"domain": "new.com"})
91 if code != 402 || errCode(body) != "limit_exceeded" {
92 t.Fatalf("want 402 limit_exceeded, got %d %v", code, body)
93 }
94}
95
96func TestDeleteDomain(t *testing.T) {
97 srv := testServer(t)

Callers

nothing calls this directly

Calls 3

testServerFunction · 0.85
postJSONFunction · 0.85
errCodeFunction · 0.85

Tested by

no test coverage detected