@@ -287,6 +287,28 @@ func TestGetUpdatedMachines(t *testing.T) {
287
287
newNode ("node-1" , machineConfigV1 , machineConfigV1 ),
288
288
newNodeWithReady ("node-2" , machineConfigV1 , machineConfigV1 , corev1 .ConditionTrue ),
289
289
},
290
+ }, {
291
+ name : "Pool with image mode disabling, one node updating, 2 nodes not not acted upon" ,
292
+ nodes : []* corev1.Node {
293
+ newLayeredNode ("node-0" , machineConfigV0 , machineConfigV0 , imageV1 , "" ),
294
+ newLayeredNode ("node-1" , machineConfigV0 , machineConfigV0 , imageV1 , imageV1 ),
295
+ newLayeredNode ("node-2" , machineConfigV0 , machineConfigV0 , imageV1 , imageV1 ),
296
+ },
297
+ currentConfig : machineConfigV0 ,
298
+ updated : nil ,
299
+ layered : false ,
300
+ }, {
301
+ name : "Pool with image mode disabling, one node updated, 1 node updating, 1 node not acted upon" ,
302
+ nodes : []* corev1.Node {
303
+ newNode ("node-0" , machineConfigV0 , machineConfigV0 ),
304
+ newLayeredNode ("node-1" , machineConfigV0 , machineConfigV0 , imageV1 , "" ),
305
+ newLayeredNode ("node-2" , machineConfigV0 , machineConfigV0 , imageV1 , imageV1 ),
306
+ },
307
+ currentConfig : machineConfigV0 ,
308
+ updated : []* corev1.Node {
309
+ newNode ("node-0" , machineConfigV0 , machineConfigV0 ),
310
+ },
311
+ layered : false ,
290
312
},
291
313
}
292
314
0 commit comments