Add HTTP Support for OCI artifacts

Signed-off-by: Tom Runyon <runyontr@gmail.com>
Signed-off-by: Tom Runyon <tom@defenseunicorns.com>
pull/11623/head
Tom Runyon 3 years ago
parent 402e4d9e2e
commit e3e85b0912
No known key found for this signature in database
GPG Key ID: D1CF51977E0E790F

@ -66,7 +66,7 @@ type TestSuite struct {
RegistryClient *Client
}
func setup(suite *TestSuite, tlsEnabled bool, insecure bool) *registry.Registry {
func setup(suite *TestSuite, tlsEnabled bool, insecureSkipTLSVerify bool) *registry.Registry {
suite.WorkspaceDir = testWorkspaceDir
os.RemoveAll(suite.WorkspaceDir)
os.Mkdir(suite.WorkspaceDir, 0700)
@ -81,7 +81,7 @@ func setup(suite *TestSuite, tlsEnabled bool, insecure bool) *registry.Registry
// init test client
if tlsEnabled {
var tlsConf *tls.Config
tlsConf, err = tlsutil.NewClientTLS(tlsCert, tlsKey, tlsCA, insecure)
tlsConf, err = tlsutil.NewClientTLS(tlsCert, tlsKey, tlsCA, insecureSkipTLSVerify)
httpClient := &http.Client{
Transport: &http.Transport{
TLSClientConfig: tlsConf,

Loading…
Cancel
Save