mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-26 15:12:06 +00:00
Run gofmt against staging/src/k8s.io/client-go/transport/round_trippers_test.go
Kubernetes-commit: e87349f3caa810b96ed86fac7aec6bd0e73dacb1
This commit is contained in:
parent
2bce1731eb
commit
8d3dc9e9ef
@ -421,15 +421,15 @@ func TestDebuggingRoundTripper(t *testing.T) {
|
||||
|
||||
rawUrl := "https://127.0.0.1:12345/api/v1/pods?limit=500"
|
||||
req := &http.Request{
|
||||
Method: http.MethodGet,
|
||||
Method: http.MethodGet,
|
||||
Header: map[string][]string{
|
||||
"Authorization": []string{"bearer secretauthtoken"},
|
||||
"Authorization": []string{"bearer secretauthtoken"},
|
||||
"X-Test-Request": []string{"test"},
|
||||
},
|
||||
}
|
||||
res := &http.Response{
|
||||
Status: "OK",
|
||||
StatusCode: http.StatusOK,
|
||||
Status: "OK",
|
||||
StatusCode: http.StatusOK,
|
||||
Header: map[string][]string{
|
||||
"X-Test-Response": []string{"test"},
|
||||
},
|
||||
@ -439,7 +439,7 @@ func TestDebuggingRoundTripper(t *testing.T) {
|
||||
expectedOutputLines []string
|
||||
}{
|
||||
{
|
||||
levels: []DebugLevel{DebugJustURL},
|
||||
levels: []DebugLevel{DebugJustURL},
|
||||
expectedOutputLines: []string{fmt.Sprintf("%s %s", req.Method, rawUrl)},
|
||||
},
|
||||
{
|
||||
@ -470,15 +470,15 @@ func TestDebuggingRoundTripper(t *testing.T) {
|
||||
}(),
|
||||
},
|
||||
{
|
||||
levels: []DebugLevel{DebugURLTiming},
|
||||
levels: []DebugLevel{DebugURLTiming},
|
||||
expectedOutputLines: []string{fmt.Sprintf("%s %s %s", req.Method, rawUrl, res.Status)},
|
||||
},
|
||||
{
|
||||
levels: []DebugLevel{DebugResponseStatus},
|
||||
levels: []DebugLevel{DebugResponseStatus},
|
||||
expectedOutputLines: []string{fmt.Sprintf("Response Status: %s", res.Status)},
|
||||
},
|
||||
{
|
||||
levels: []DebugLevel{DebugCurlCommand},
|
||||
levels: []DebugLevel{DebugCurlCommand},
|
||||
expectedOutputLines: []string{fmt.Sprintf("curl -k -v -X")},
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user