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

Function TestRegisterDomain

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

Source from the content-addressed store, hash-verified

61}
62
63func TestRegisterDomain(t *testing.T) {
64 srv := testServer(t)
65 code, body := postJSON(t, srv.URL+"/v1/domains", "good", map[string]any{"domain": "new.com"})
66 if code != 201 || body["domain"] != "new.com" {
67 t.Fatalf("want 201 new.com, got %d %v", code, body)
68 }
69}
70
71func TestRegisterDomainReserved(t *testing.T) {
72 srv := testServer(t)

Callers

nothing calls this directly

Calls 2

testServerFunction · 0.85
postJSONFunction · 0.85

Tested by

no test coverage detected