(t *testing.T)
| 1356 | } |
| 1357 | |
| 1358 | func TestHideHTTPClientConfigSecrets(t *testing.T) { |
| 1359 | c, _, err := LoadHTTPConfigFile("testdata/http.conf.good.yml") |
| 1360 | require.NoErrorf(t, err, "Error parsing %s: %s", "testdata/http.conf.good.yml", err) |
| 1361 | |
| 1362 | // String method must not reveal authentication credentials. |
| 1363 | s := c.String() |
| 1364 | require.NotContainsf(t, s, "mysecret", "http client config's String method reveals authentication credentials.") |
| 1365 | } |
| 1366 | |
| 1367 | func TestDefaultFollowRedirect(t *testing.T) { |
| 1368 | cfg, _, err := LoadHTTPConfigFile("testdata/http.conf.good.yml") |
nothing calls this directly
no test coverage detected
searching dependent graphs…