Remove -k from toCurl output

Kubernetes-commit: 5bf7bb52fe4c95e09b812e6c43eeed7abdd6d90f
This commit is contained in:
Jon Zeolla 2021-06-03 15:11:03 -04:00 committed by Kubernetes Publisher
parent 09dbda0b38
commit a3215d72fd
2 changed files with 2 additions and 2 deletions

View File

@ -346,7 +346,7 @@ func (r *requestInfo) toCurl() string {
} }
} }
return fmt.Sprintf("curl -k -v -X%s %s '%s'", r.RequestVerb, headers, r.RequestURL) return fmt.Sprintf("curl -v -X%s %s '%s'", r.RequestVerb, headers, r.RequestURL)
} }
// debuggingRoundTripper will display information about the requests passing // debuggingRoundTripper will display information about the requests passing

View File

@ -480,7 +480,7 @@ func TestDebuggingRoundTripper(t *testing.T) {
}, },
{ {
levels: []DebugLevel{DebugCurlCommand}, levels: []DebugLevel{DebugCurlCommand},
expectedOutputLines: []string{fmt.Sprintf("curl -k -v -X")}, expectedOutputLines: []string{fmt.Sprintf("curl -v -X")},
}, },
} }