only pass ca cert to httpgetter for tests

Signed-off-by: Simon Bein <simontheleg@gmail.com>
pull/12545/head
Simon Bein 2 years ago
parent 123592fc94
commit a779b355bd
No known key found for this signature in database
GPG Key ID: 8A8A68258B4E118E

@ -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)

Loading…
Cancel
Save