(t *testing.T)
| 246 | } |
| 247 | |
| 248 | func TestHealthz(t *testing.T) { |
| 249 | t.Parallel() |
| 250 | client := coderdtest.New(t, nil) |
| 251 | |
| 252 | res, err := client.Request(context.Background(), http.MethodGet, "/healthz", nil) |
| 253 | require.NoError(t, err) |
| 254 | defer res.Body.Close() |
| 255 | |
| 256 | require.Equal(t, http.StatusOK, res.StatusCode) |
| 257 | body, err := io.ReadAll(res.Body) |
| 258 | require.NoError(t, err) |
| 259 | |
| 260 | assert.Equal(t, "OK", string(body)) |
| 261 | } |
| 262 | |
| 263 | func TestSwagger(t *testing.T) { |
| 264 | t.Parallel() |