(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func 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 | |
| 128 | func TestCreateAgentUnregisteredDomain(t *testing.T) { |
| 129 | srv := testServer(t) |
nothing calls this directly
no test coverage detected