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

Function TestCreateAgentUnverifiedDomain

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

Source from the content-addressed store, hash-verified

116}
117
118func TestCreateAgentUnverifiedDomain(t *testing.T) {
119 srv := testServer(t)
120 code, body := postJSON(t, srv.URL+"/v1/agents", "good", map[string]any{
121 "email": "bot@pending.com",
122 })
123 if code != 400 || errCode(body) != "domain_not_verified" {
124 t.Fatalf("want 400 domain_not_verified, got %d %v", code, body)
125 }
126}
127
128func TestCreateAgentUnregisteredDomain(t *testing.T) {
129 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