Skip to content

Commit 610b26e

Browse files
committed
Update tests for 0.14
1 parent f4d10a3 commit 610b26e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/client/apiutil/lazyrestmapper_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
9595
crt := newCountingRoundTripper(httpClient.Transport)
9696
httpClient.Transport = crt
9797

98-
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper)
98+
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper)
9999
g.Expect(err).NotTo(gmg.HaveOccurred())
100100

101101
// There are no requests before any call
@@ -144,7 +144,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
144144
crt := newCountingRoundTripper(httpClient.Transport)
145145
httpClient.Transport = crt
146146

147-
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper)
147+
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper)
148148
g.Expect(err).NotTo(gmg.HaveOccurred())
149149

150150
g.Expect(crt.GetRequestCount()).To(gmg.Equal(0))
@@ -181,7 +181,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
181181
crt := newCountingRoundTripper(httpClient.Transport)
182182
httpClient.Transport = crt
183183

184-
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper)
184+
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper)
185185
g.Expect(err).NotTo(gmg.HaveOccurred())
186186

187187
g.Expect(crt.GetRequestCount()).To(gmg.Equal(0))
@@ -217,7 +217,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
217217
crt := newCountingRoundTripper(httpClient.Transport)
218218
httpClient.Transport = crt
219219

220-
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper)
220+
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper)
221221
g.Expect(err).NotTo(gmg.HaveOccurred())
222222

223223
g.Expect(crt.GetRequestCount()).To(gmg.Equal(0))
@@ -252,7 +252,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
252252
crt := newCountingRoundTripper(httpClient.Transport)
253253
httpClient.Transport = crt
254254

255-
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper)
255+
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper)
256256
g.Expect(err).NotTo(gmg.HaveOccurred())
257257

258258
g.Expect(crt.GetRequestCount()).To(gmg.Equal(0))
@@ -296,7 +296,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
296296
crt := newCountingRoundTripper(httpClient.Transport)
297297
httpClient.Transport = crt
298298

299-
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper)
299+
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper)
300300
g.Expect(err).NotTo(gmg.HaveOccurred())
301301

302302
_, err = lazyRestMapper.RESTMapping(schema.GroupKind{Group: "INVALID1"}, "v1")
@@ -335,7 +335,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
335335
crt := newCountingRoundTripper(httpClient.Transport)
336336
httpClient.Transport = crt
337337

338-
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper)
338+
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper)
339339
g.Expect(err).NotTo(gmg.HaveOccurred())
340340

341341
_, err = lazyRestMapper.RESTMapping(schema.GroupKind{Group: "apps", Kind: "INVALID"})
@@ -374,7 +374,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
374374
crt := newCountingRoundTripper(httpClient.Transport)
375375
httpClient.Transport = crt
376376

377-
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, httpClient, apiutil.WithExperimentalLazyMapper)
377+
lazyRestMapper, err := apiutil.NewDynamicRESTMapper(restCfg, apiutil.WithExperimentalLazyMapper)
378378
g.Expect(err).NotTo(gmg.HaveOccurred())
379379

380380
_, err = lazyRestMapper.RESTMapping(schema.GroupKind{Group: "apps", Kind: "deployment"}, "INVALID")

0 commit comments

Comments
 (0)