From a779b355bd9f46fa1048530a97eddb97396b6155 Mon Sep 17 00:00:00 2001 From: Simon Bein Date: Mon, 6 Nov 2023 10:27:50 +0100 Subject: [PATCH] only pass ca cert to httpgetter for tests Signed-off-by: Simon Bein --- pkg/getter/httpgetter_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/getter/httpgetter_test.go b/pkg/getter/httpgetter_test.go index b2d2291f3..9a0cf6864 100644 --- a/pkg/getter/httpgetter_test.go +++ b/pkg/getter/httpgetter_test.go @@ -382,7 +382,8 @@ func TestDownloadTLSWithRedirect(t *testing.T) { t.Run("Test with TLS", func(t *testing.T) { g, err := NewHTTPGetter( WithURL(u.String()), - WithTLSClientConfig(pub, priv, ca), + WithTLSClientConfig("", "", ca), + WithInsecureSkipVerifyTLS(insecureSkipTLSverify), ) if err != nil { t.Fatal(err)