(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func 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 | |
| 80 | func TestRegisterDomainInvalid(t *testing.T) { |
| 81 | srv := testServer(t) |
nothing calls this directly
no test coverage detected