mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
Rename HttpClientFunc -> HTTPClientFunc
This commit is contained in:
@@ -80,9 +80,9 @@ func (c *Fake) ServerAPIVersions() (*api.APIVersions, error) {
|
|||||||
return &api.APIVersions{Versions: []string{"v1beta1", "v1beta2"}}, nil
|
return &api.APIVersions{Versions: []string{"v1beta1", "v1beta2"}}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type HttpClientFunc func(*http.Request) (*http.Response, error)
|
type HTTPClientFunc func(*http.Request) (*http.Response, error)
|
||||||
|
|
||||||
func (f HttpClientFunc) Do(req *http.Request) (*http.Response, error) {
|
func (f HTTPClientFunc) Do(req *http.Request) (*http.Response, error) {
|
||||||
return f(req)
|
return f(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -125,7 +125,7 @@ func TestRESTHelperCreate(t *testing.T) {
|
|||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
Resp *http.Response
|
Resp *http.Response
|
||||||
RespFunc client.HttpClientFunc
|
RespFunc client.HTTPClientFunc
|
||||||
HttpErr error
|
HttpErr error
|
||||||
Modify bool
|
Modify bool
|
||||||
Object runtime.Object
|
Object runtime.Object
|
||||||
@@ -299,7 +299,7 @@ func TestRESTHelperUpdate(t *testing.T) {
|
|||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
Resp *http.Response
|
Resp *http.Response
|
||||||
RespFunc client.HttpClientFunc
|
RespFunc client.HTTPClientFunc
|
||||||
HttpErr error
|
HttpErr error
|
||||||
Overwrite bool
|
Overwrite bool
|
||||||
Object runtime.Object
|
Object runtime.Object
|
||||||
|
Reference in New Issue
Block a user