@@ -223,6 +223,7 @@ func TestReconcileVMSS(t *testing.T) {
223223 s .DeleteLongRunningOperationState (defaultSpec .Name , serviceName , infrav1 .PutFuture )
224224 s .DeleteLongRunningOperationState (defaultSpec .Name , serviceName , infrav1 .PatchFuture )
225225 s .UpdatePutStatus (infrav1 .BootstrapSucceededCondition , serviceName , nil )
226+ s .HasReplicasExternallyManaged (gomockinternal .AContext ()).Return (false )
226227 },
227228 },
228229 {
@@ -238,6 +239,7 @@ func TestReconcileVMSS(t *testing.T) {
238239 s .DeleteLongRunningOperationState (defaultSpec .Name , serviceName , infrav1 .PutFuture )
239240 s .DeleteLongRunningOperationState (defaultSpec .Name , serviceName , infrav1 .PatchFuture )
240241 s .UpdatePutStatus (infrav1 .BootstrapSucceededCondition , serviceName , nil )
242+ s .HasReplicasExternallyManaged (gomockinternal .AContext ()).Return (false )
241243 },
242244 },
243245 {
@@ -582,6 +584,7 @@ func TestReconcileVMSS(t *testing.T) {
582584 m .GetResultIfDone (gomockinternal .AContext (), patchFuture ).Return (compute.VirtualMachineScaleSet {}, azure .NewOperationNotDoneError (patchFuture ))
583585 m .Get (gomockinternal .AContext (), defaultResourceGroup , defaultVMSSName ).Return (clone , nil )
584586 m .ListInstances (gomockinternal .AContext (), defaultResourceGroup , defaultVMSSName ).Return (instances , nil )
587+ s .HasReplicasExternallyManaged (gomockinternal .AContext ()).Return (false )
585588 },
586589 },
587590 {
@@ -741,6 +744,7 @@ func TestReconcileVMSS(t *testing.T) {
741744 s .DeleteLongRunningOperationState (spec .Name , serviceName , infrav1 .PatchFuture )
742745 s .UpdatePutStatus (infrav1 .BootstrapSucceededCondition , serviceName , nil )
743746 s .Location ().AnyTimes ().Return ("test-location" )
747+ s .HasReplicasExternallyManaged (gomockinternal .AContext ()).Return (false )
744748 },
745749 },
746750 {
@@ -767,6 +771,7 @@ func TestReconcileVMSS(t *testing.T) {
767771 s .DeleteLongRunningOperationState (spec .Name , serviceName , infrav1 .PatchFuture )
768772 s .UpdatePutStatus (infrav1 .BootstrapSucceededCondition , serviceName , nil )
769773 s .Location ().AnyTimes ().Return ("test-location" )
774+ s .HasReplicasExternallyManaged (gomockinternal .AContext ()).Return (false )
770775 },
771776 },
772777 {
@@ -792,6 +797,7 @@ func TestReconcileVMSS(t *testing.T) {
792797 s .DeleteLongRunningOperationState (spec .Name , serviceName , infrav1 .PatchFuture )
793798 s .UpdatePutStatus (infrav1 .BootstrapSucceededCondition , serviceName , nil )
794799 s .Location ().AnyTimes ().Return ("test-location" )
800+ s .HasReplicasExternallyManaged (gomockinternal .AContext ()).Return (false )
795801 },
796802 },
797803 }
0 commit comments