File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -301,6 +301,17 @@ kind: List
301
301
t .Fatalf ("failed to create new instance with %v: %v" , deploymentB , errB )
302
302
}
303
303
304
+ deploymentNoItems := "deployment-no-items"
305
+ testDeploymentNoItems , errNoItems := factory .FromMap (
306
+ map [string ]interface {}{
307
+ "apiVersion" : "v1" ,
308
+ "kind" : "List" ,
309
+ },
310
+ )
311
+ if errNoItems != nil {
312
+ t .Fatalf ("failed to create new instance with %v: %v" , deploymentNoItems , testDeploymentNoItems )
313
+ }
314
+
304
315
fSys := filesys .MakeFsInMemory ()
305
316
fSys .WriteFile (string (patchGood1 ), []byte (patch1 ))
306
317
fSys .WriteFile (string (patchGood2 ), []byte (patch2 ))
@@ -363,7 +374,7 @@ kind: List
363
374
},
364
375
"listWithNoItems" : {
365
376
input : []types.PatchStrategicMerge {patchList4 },
366
- expectedOut : []* Resource {},
377
+ expectedOut : []* Resource {testDeploymentNoItems },
367
378
expectedErr : false ,
368
379
},
369
380
}
You can’t perform that action at this time.
0 commit comments