(t *testing.T, data io.Reader)
| 1279 | } |
| 1280 | |
| 1281 | func testConfigPost(t *testing.T, data io.Reader) (*http.Response, error) { |
| 1282 | t.Helper() |
| 1283 | |
| 1284 | baseURL := startHTTP(t, apiCfg) |
| 1285 | cli := &http.Client{ |
| 1286 | Timeout: time.Second, |
| 1287 | } |
| 1288 | |
| 1289 | req, _ := http.NewRequest("POST", baseURL+"/rest/system/config", data) |
| 1290 | req.Header.Set("X-API-Key", testAPIKey) |
| 1291 | return cli.Do(req) |
| 1292 | } |
| 1293 | |
| 1294 | func TestHostCheck(t *testing.T) { |
| 1295 | t.Parallel() |
no test coverage detected