mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Remove Codec from ContentConfig.
This commit is contained in:
@@ -263,7 +263,7 @@ func TestRefetchSchemaWhenValidationFails(t *testing.T) {
|
||||
requests := map[string]int{}
|
||||
|
||||
c := &fake.RESTClient{
|
||||
Codec: testapi.Default.Codec(),
|
||||
NegotiatedSerializer: testapi.Default.NegotiatedSerializer(),
|
||||
Client: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
|
||||
switch p, m := req.URL.Path, req.Method; {
|
||||
case strings.HasPrefix(p, "/swaggerapi") && m == "GET":
|
||||
@@ -320,7 +320,7 @@ func TestValidateCachesSchema(t *testing.T) {
|
||||
requests := map[string]int{}
|
||||
|
||||
c := &fake.RESTClient{
|
||||
Codec: testapi.Default.Codec(),
|
||||
NegotiatedSerializer: testapi.Default.NegotiatedSerializer(),
|
||||
Client: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
|
||||
switch p, m := req.URL.Path, req.Method; {
|
||||
case strings.HasPrefix(p, "/swaggerapi") && m == "GET":
|
||||
|
||||
Reference in New Issue
Block a user