MCPcopy Create free account
hub / github.com/prometheus/common / TestValidateHTTPConfig

Function TestValidateHTTPConfig

config/http_config_test.go:1742–1749  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1740}
1741
1742func 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
1751func TestInvalidHTTPConfigs(t *testing.T) {
1752 for _, ee := range invalidHTTPClientConfigs {

Callers

nothing calls this directly

Calls 2

LoadHTTPConfigFileFunction · 0.85
ValidateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…