(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestGetDomain(t *testing.T) { |
| 48 | srv := testServer(t) |
| 49 | code, body := getJSON(t, srv.URL+"/v1/domains/acme.com", "good") |
| 50 | if code != 200 || body["domain"] != "acme.com" || body["verified"] != true { |
| 51 | t.Fatalf("unexpected get domain: %d %v", code, body) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func TestGetDomainNotFound(t *testing.T) { |
| 56 | srv := testServer(t) |
nothing calls this directly
no test coverage detected