@@ -95,7 +95,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
95
95
crt := newCountingRoundTripper (httpClient .Transport )
96
96
httpClient .Transport = crt
97
97
98
- lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , httpClient , apiutil .WithExperimentalLazyMapper )
98
+ lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , apiutil .WithExperimentalLazyMapper )
99
99
g .Expect (err ).NotTo (gmg .HaveOccurred ())
100
100
101
101
// There are no requests before any call
@@ -144,7 +144,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
144
144
crt := newCountingRoundTripper (httpClient .Transport )
145
145
httpClient .Transport = crt
146
146
147
- lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , httpClient , apiutil .WithExperimentalLazyMapper )
147
+ lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , apiutil .WithExperimentalLazyMapper )
148
148
g .Expect (err ).NotTo (gmg .HaveOccurred ())
149
149
150
150
g .Expect (crt .GetRequestCount ()).To (gmg .Equal (0 ))
@@ -181,7 +181,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
181
181
crt := newCountingRoundTripper (httpClient .Transport )
182
182
httpClient .Transport = crt
183
183
184
- lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , httpClient , apiutil .WithExperimentalLazyMapper )
184
+ lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , apiutil .WithExperimentalLazyMapper )
185
185
g .Expect (err ).NotTo (gmg .HaveOccurred ())
186
186
187
187
g .Expect (crt .GetRequestCount ()).To (gmg .Equal (0 ))
@@ -217,7 +217,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
217
217
crt := newCountingRoundTripper (httpClient .Transport )
218
218
httpClient .Transport = crt
219
219
220
- lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , httpClient , apiutil .WithExperimentalLazyMapper )
220
+ lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , apiutil .WithExperimentalLazyMapper )
221
221
g .Expect (err ).NotTo (gmg .HaveOccurred ())
222
222
223
223
g .Expect (crt .GetRequestCount ()).To (gmg .Equal (0 ))
@@ -252,7 +252,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
252
252
crt := newCountingRoundTripper (httpClient .Transport )
253
253
httpClient .Transport = crt
254
254
255
- lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , httpClient , apiutil .WithExperimentalLazyMapper )
255
+ lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , apiutil .WithExperimentalLazyMapper )
256
256
g .Expect (err ).NotTo (gmg .HaveOccurred ())
257
257
258
258
g .Expect (crt .GetRequestCount ()).To (gmg .Equal (0 ))
@@ -296,7 +296,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
296
296
crt := newCountingRoundTripper (httpClient .Transport )
297
297
httpClient .Transport = crt
298
298
299
- lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , httpClient , apiutil .WithExperimentalLazyMapper )
299
+ lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , apiutil .WithExperimentalLazyMapper )
300
300
g .Expect (err ).NotTo (gmg .HaveOccurred ())
301
301
302
302
_ , err = lazyRestMapper .RESTMapping (schema.GroupKind {Group : "INVALID1" }, "v1" )
@@ -335,7 +335,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
335
335
crt := newCountingRoundTripper (httpClient .Transport )
336
336
httpClient .Transport = crt
337
337
338
- lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , httpClient , apiutil .WithExperimentalLazyMapper )
338
+ lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , apiutil .WithExperimentalLazyMapper )
339
339
g .Expect (err ).NotTo (gmg .HaveOccurred ())
340
340
341
341
_ , err = lazyRestMapper .RESTMapping (schema.GroupKind {Group : "apps" , Kind : "INVALID" })
@@ -374,7 +374,7 @@ func TestLazyRestMapperProvider(t *testing.T) {
374
374
crt := newCountingRoundTripper (httpClient .Transport )
375
375
httpClient .Transport = crt
376
376
377
- lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , httpClient , apiutil .WithExperimentalLazyMapper )
377
+ lazyRestMapper , err := apiutil .NewDynamicRESTMapper (restCfg , apiutil .WithExperimentalLazyMapper )
378
378
g .Expect (err ).NotTo (gmg .HaveOccurred ())
379
379
380
380
_ , err = lazyRestMapper .RESTMapping (schema.GroupKind {Group : "apps" , Kind : "deployment" }, "INVALID" )
0 commit comments