Skip to content

Commit

Permalink
tls: skip verification
Browse files Browse the repository at this point in the history
  • Loading branch information
adambkaplan committed Apr 28, 2024
1 parent 4c03c56 commit cc972cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/extended/builds/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package builds
import (
"bytes"
"context"
"crypto/tls"
"encoding/json"
"fmt"
"io/ioutil"
Expand Down Expand Up @@ -113,7 +114,14 @@ func TestWebhook(t g.GinkgoTInterface, oc *exutil.CLI) {
URLs: []string{
"/apis/build.openshift.io/v1/namespaces/" + oc.Namespace() + "/buildconfigs/pushbuild/webhooks/secret200/generic",
},
client: &http.Client{},
// Need client to skip TLS verification - CI clusters have self-signed certificates.
client: &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
},
},
expectedStatus: http.StatusForbidden,
},
}
Expand Down

0 comments on commit cc972cf

Please sign in to comment.