From 610b26ee0cdd5dbea0e4d64ba98c54cac97a8a67 Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Sun, 5 Feb 2023 20:15:39 -0500 Subject: [PATCH] Update tests for 0.14 --- pkg/client/apiutil/lazyrestmapper_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/client/apiutil/lazyrestmapper_test.go b/pkg/client/apiutil/lazyrestmapper_test.go index a0027e77ff..0efb51a4bb 100644 --- a/pkg/client/apiutil/lazyrestmapper_test.go +++ b/pkg/client/apiutil/lazyrestmapper_test.go @@ -95,7 +95,7 @@ func TestLazyRestMapperProvider(t *testing.T) { crt := newCountingRoundTripper(httpClient.Transport) httpClient.Transport = crt - lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper) + lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper) g.Expect(err).NotTo(gmg.HaveOccurred()) // There are no requests before any call @@ -144,7 +144,7 @@ func TestLazyRestMapperProvider(t *testing.T) { crt := newCountingRoundTripper(httpClient.Transport) httpClient.Transport = crt - lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper) + lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper) g.Expect(err).NotTo(gmg.HaveOccurred()) g.Expect(crt.GetRequestCount()).To(gmg.Equal(0)) @@ -181,7 +181,7 @@ func TestLazyRestMapperProvider(t *testing.T) { crt := newCountingRoundTripper(httpClient.Transport) httpClient.Transport = crt - lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper) + lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper) g.Expect(err).NotTo(gmg.HaveOccurred()) g.Expect(crt.GetRequestCount()).To(gmg.Equal(0)) @@ -217,7 +217,7 @@ func TestLazyRestMapperProvider(t *testing.T) { crt := newCountingRoundTripper(httpClient.Transport) httpClient.Transport = crt - lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper) + lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper) g.Expect(err).NotTo(gmg.HaveOccurred()) g.Expect(crt.GetRequestCount()).To(gmg.Equal(0)) @@ -252,7 +252,7 @@ func TestLazyRestMapperProvider(t *testing.T) { crt := newCountingRoundTripper(httpClient.Transport) httpClient.Transport = crt - lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper) + lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper) g.Expect(err).NotTo(gmg.HaveOccurred()) g.Expect(crt.GetRequestCount()).To(gmg.Equal(0)) @@ -296,7 +296,7 @@ func TestLazyRestMapperProvider(t *testing.T) { crt := newCountingRoundTripper(httpClient.Transport) httpClient.Transport = crt - lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper) + lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper) g.Expect(err).NotTo(gmg.HaveOccurred()) _, err = lazyRestMapper.RESTMapping(schema.GroupKind{Group: "INVALID1"}, "v1") @@ -335,7 +335,7 @@ func TestLazyRestMapperProvider(t *testing.T) { crt := newCountingRoundTripper(httpClient.Transport) httpClient.Transport = crt - lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper) + lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper) g.Expect(err).NotTo(gmg.HaveOccurred()) _, err = lazyRestMapper.RESTMapping(schema.GroupKind{Group: "apps", Kind: "INVALID"}) @@ -374,7 +374,7 @@ func TestLazyRestMapperProvider(t *testing.T) { crt := newCountingRoundTripper(httpClient.Transport) httpClient.Transport = crt - lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper) + lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper) g.Expect(err).NotTo(gmg.HaveOccurred()) _, err = lazyRestMapper.RESTMapping(schema.GroupKind{Group: "apps", Kind: "deployment"}, "INVALID")