(t *testing.T)
| 118 | } |
| 119 | |
| 120 | func TestNodeEnrollToken_NotFound(t *testing.T) { |
| 121 | store := enrolltokens.NewMemoryStore() |
| 122 | mux := newEnrollTokenTestMux(t, store) // no nodes seeded |
| 123 | |
| 124 | w := doEnrollToken(t, mux, "ghost", nil) |
| 125 | if w.Code != http.StatusNotFound { |
| 126 | t.Fatalf("status=%d body=%s", w.Code, w.Body.String()) |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | func TestNodeEnrollToken_InvalidJSON(t *testing.T) { |
| 131 | store := enrolltokens.NewMemoryStore() |
nothing calls this directly
no test coverage detected