(t *testing.T)
| 1740 | } |
| 1741 | |
| 1742 | func TestValidateHTTPConfig(t *testing.T) { |
| 1743 | cfg, _, err := LoadHTTPConfigFile("testdata/http.conf.good.yml") |
| 1744 | if err != nil { |
| 1745 | t.Errorf("Error loading HTTP client config: %v", err) |
| 1746 | } |
| 1747 | err = cfg.Validate() |
| 1748 | require.NoErrorf(t, err, "Error validating %s: %s", "testdata/http.conf.good.yml", err) |
| 1749 | } |
| 1750 | |
| 1751 | func TestInvalidHTTPConfigs(t *testing.T) { |
| 1752 | for _, ee := range invalidHTTPClientConfigs { |
nothing calls this directly
no test coverage detected
searching dependent graphs…