From 8bb3f2fd4358bf05823fa36580b20964f20edc3a Mon Sep 17 00:00:00 2001 From: hagen1778 Date: Tue, 24 Sep 2024 15:12:55 +0200 Subject: [PATCH] lib/promscrape: make linter happy Signed-off-by: hagen1778 --- lib/promscrape/client_test.go | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/lib/promscrape/client_test.go b/lib/promscrape/client_test.go index a9c69304f..8e53d9ad3 100644 --- a/lib/promscrape/client_test.go +++ b/lib/promscrape/client_test.go @@ -1,18 +1,6 @@ package promscrape -import ( - "encoding/base64" - "fmt" - "io" - "net" - "net/http" - "net/http/httptest" - "testing" - "time" - - "github.com/VictoriaMetrics/VictoriaMetrics/lib/promauth" -) - +/* func copyHeader(dst, src http.Header) { for k, vv := range src { for _, v := range vv { @@ -109,7 +97,7 @@ func newTestAuthConfig(t *testing.T, isTLS bool, ba *promauth.BasicAuthConfig) * return ac } -/*func TestClientProxyReadOk(t *testing.T) { +func TestClientProxyReadOk(t *testing.T) { ctx := context.Background() f := func(isBackendTLS, isProxyTLS bool, backendAuth, proxyAuth *promauth.BasicAuthConfig) { t.Helper() @@ -194,4 +182,5 @@ func newTestAuthConfig(t *testing.T, isTLS bool, ba *promauth.BasicAuthConfig) * f(false, true, &promauth.BasicAuthConfig{Username: "test", Password: promauth.NewSecret("1234")}, nil) // backend tls and proxy auth f(true, false, nil, &promauth.BasicAuthConfig{Username: "proxy-test", Password: promauth.NewSecret("1234")}) -}*/ +} +*/