Skip to content

Commit

Permalink
chore: demonstrate use of loglevel and log dir for TLS provider
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Mar 25, 2021
1 parent 8ed3655 commit bae7fd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/customTls/self_signed_certificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ func TestExample_SelfSignedTLSProvider(t *testing.T) {
ProviderBaseURL: fmt.Sprintf("https://localhost:%d", port),
PactURLs: []string{filepath.ToSlash(fmt.Sprintf("%s/consumer-selfsignedtls.json", pactDir))},
CustomTLSConfig: &tls.Config{
RootCAs: getCaCertPool(),
// InsecureSkipVerify: true, // Disable SSL verification altogether
RootCAs: getCaCertPool(),
InsecureSkipVerify: true, // Disable SSL verification altogether
},
PactLogDir: logDir,
PactLogLevel: "INFO",
})

if err != nil {
Expand Down

0 comments on commit bae7fd8

Please sign in to comment.