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

Function TestRegisterDomainReserved

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

Source from the content-addressed store, hash-verified

69}
70
71func TestRegisterDomainReserved(t *testing.T) {
72 srv := testServer(t)
73 // SharedDomain is "agents.e2a.dev" in the test server.
74 code, body := postJSON(t, srv.URL+"/v1/domains", "good", map[string]any{"domain": "agents.e2a.dev"})
75 if code != 400 || errCode(body) != "reserved_domain" {
76 t.Fatalf("want 400 reserved_domain, got %d %v", code, body)
77 }
78}
79
80func TestRegisterDomainInvalid(t *testing.T) {
81 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