(t *testing.T)
| 1389 | } |
| 1390 | |
| 1391 | func TestValidateHTTPConfig(t *testing.T) { |
| 1392 | cfg, _, err := LoadHTTPConfigFile("testdata/http.conf.good.yml") |
| 1393 | if err != nil { |
| 1394 | t.Errorf("Error loading HTTP client config: %v", err) |
| 1395 | } |
| 1396 | err = cfg.Validate() |
| 1397 | if err != nil { |
| 1398 | t.Fatalf("Error validating %s: %s", "testdata/http.conf.good.yml", err) |
| 1399 | } |
| 1400 | } |
| 1401 | |
| 1402 | func TestInvalidHTTPConfigs(t *testing.T) { |
| 1403 | for _, ee := range invalidHTTPClientConfigs { |
nothing calls this directly
no test coverage detected