Skip to content

Commit

Permalink
Removing comments added for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
l-technicore committed Jan 25, 2024
1 parent b31ab9b commit e82db5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 77 deletions.
22 changes: 0 additions & 22 deletions pkg/oci/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"context"
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"net"
"net/http"
Expand Down Expand Up @@ -457,27 +456,6 @@ func configureCustomTransport(logger *zap.SugaredLogger, baseClient *common.Base
httpClient.Transport = transport.(*http.Transport)
case *common.OciHTTPTransportWrapper:
httpClient.Transport = transport.(*common.OciHTTPTransportWrapper)
// testing
tls, _ := transport.(*common.OciHTTPTransportWrapper).TLSConfigProvider.NewOrDefault()
fmt.Println("TLS: ", tls.RootCAs)

httpRoundTripper, err := transport.(*common.OciHTTPTransportWrapper).TransportTemplate.NewOrDefault(tls)
if err != nil {
fmt.Println("Error: ", err.Error())
}
url, err := url.Parse("http://www.google.com/search?q=hi")
if err != nil {
fmt.Println("Error: ", err.Error())
} else {
fmt.Println("URL: ", url)
}
res, err := httpRoundTripper.(*http.Transport).Proxy(&http.Request{URL: url})
if err != nil {
fmt.Println("Error: ", err.Error())
}
if res != nil {
fmt.Println("Proxy: ", res.Host)
}
}
return nil
}
55 changes: 0 additions & 55 deletions pkg/oci/client/hello-world.go

This file was deleted.

0 comments on commit e82db5b

Please sign in to comment.