@@ -323,6 +323,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
323
323
setSuspendedProcesses (t , g )
324
324
ms .AWSMachinePool .Spec .SuspendProcesses .All = true
325
325
reconSvc .EXPECT ().ReconcileLaunchTemplate (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil )
326
+ reconSvc .EXPECT ().ReconcileLifecycleHooks (gomock .Any ()).Return (nil )
326
327
reconSvc .EXPECT ().ReconcileTags (gomock .Any (), gomock .Any ()).Return (nil )
327
328
asgSvc .EXPECT ().GetASGByName (gomock .Any ()).Return (& expinfrav1.AutoScalingGroup {
328
329
Name : "name" ,
@@ -363,6 +364,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
363
364
setSuspendedProcesses (t , g )
364
365
365
366
reconSvc .EXPECT ().ReconcileLaunchTemplate (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil )
367
+ reconSvc .EXPECT ().ReconcileLifecycleHooks (gomock .Any ()).Return (nil )
366
368
reconSvc .EXPECT ().ReconcileTags (gomock .Any (), gomock .Any ()).Return (nil )
367
369
asgSvc .EXPECT ().GetASGByName (gomock .Any ()).Return (& expinfrav1.AutoScalingGroup {
368
370
Name : "name" ,
@@ -388,6 +390,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
388
390
DesiredCapacity : ptr.To [int32 ](1 ),
389
391
}
390
392
reconSvc .EXPECT ().ReconcileLaunchTemplate (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil )
393
+ reconSvc .EXPECT ().ReconcileLifecycleHooks (gomock .Any ()).Return (nil )
391
394
asgSvc .EXPECT ().GetASGByName (gomock .Any ()).Return (& asg , nil )
392
395
asgSvc .EXPECT ().SubnetIDs (gomock .Any ()).Return ([]string {}, nil )
393
396
asgSvc .EXPECT ().UpdateASG (gomock .Any ()).Return (nil )
@@ -426,6 +429,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
426
429
},
427
430
Subnets : []string {"subnet1" , "subnet2" }}
428
431
reconSvc .EXPECT ().ReconcileLaunchTemplate (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil )
432
+ reconSvc .EXPECT ().ReconcileLifecycleHooks (gomock .Any ()).Return (nil )
429
433
reconSvc .EXPECT ().ReconcileTags (gomock .Any (), gomock .Any ()).Return (nil )
430
434
asgSvc .EXPECT ().GetASGByName (gomock .Any ()).Return (& asg , nil ).AnyTimes ()
431
435
asgSvc .EXPECT ().SubnetIDs (gomock .Any ()).Return ([]string {"subnet2" , "subnet1" }, nil ).Times (1 )
@@ -444,6 +448,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
444
448
MaxSize : int32 (100 ),
445
449
Subnets : []string {"subnet1" , "subnet2" }}
446
450
reconSvc .EXPECT ().ReconcileLaunchTemplate (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil )
451
+ reconSvc .EXPECT ().ReconcileLifecycleHooks (gomock .Any ()).Return (nil )
447
452
reconSvc .EXPECT ().ReconcileTags (gomock .Any (), gomock .Any ()).Return (nil )
448
453
asgSvc .EXPECT ().GetASGByName (gomock .Any ()).Return (& asg , nil ).AnyTimes ()
449
454
asgSvc .EXPECT ().SubnetIDs (gomock .Any ()).Return ([]string {"subnet1" }, nil ).Times (1 )
@@ -462,6 +467,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
462
467
MaxSize : int32 (2 ),
463
468
Subnets : []string {}}
464
469
reconSvc .EXPECT ().ReconcileLaunchTemplate (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil )
470
+ reconSvc .EXPECT ().ReconcileLifecycleHooks (gomock .Any ()).Return (nil )
465
471
reconSvc .EXPECT ().ReconcileTags (gomock .Any (), gomock .Any ()).Return (nil )
466
472
asgSvc .EXPECT ().GetASGByName (gomock .Any ()).Return (& asg , nil ).AnyTimes ()
467
473
asgSvc .EXPECT ().SubnetIDs (gomock .Any ()).Return ([]string {}, nil ).Times (1 )
0 commit comments