@@ -76,7 +76,7 @@ func TestNodePoolToRosaMachinePoolSpec(t *testing.T) {
7676 Replicas : ptr.To [int32 ](2 ),
7777 }
7878
79- nodePoolBuilder := nodePoolBuilder (rosaMachinePoolSpec , machinePoolSpec )
79+ nodePoolBuilder := nodePoolBuilder (rosaMachinePoolSpec , machinePoolSpec , rosacontrolplanev1 . Stable )
8080 nodePoolSpec , err := nodePoolBuilder .Build ()
8181 g .Expect (err ).ToNot (HaveOccurred ())
8282
@@ -285,7 +285,7 @@ func TestRosaMachinePoolReconcile(t *testing.T) {
285285 result : ctrl.Result {RequeueAfter : time .Second * 60 },
286286 expect : func (m * mocks.MockOCMClientMockRecorder ) {
287287 m .GetNodePool (gomock .Any (), gomock .Any ()).DoAndReturn (func (clusterId string , nodePoolID string ) (* cmv1.NodePool , bool , error ) {
288- nodePoolBuilder := nodePoolBuilder (rosaMachinePool (1 ).Spec , ownerMachinePool (1 ).Spec )
288+ nodePoolBuilder := nodePoolBuilder (rosaMachinePool (1 ).Spec , ownerMachinePool (1 ).Spec , rosacontrolplanev1 . Stable )
289289 nodePool , err := nodePoolBuilder .ID ("node-pool-1" ).Build ()
290290 g .Expect (err ).To (BeNil ())
291291 return nodePool , true , nil
@@ -323,7 +323,7 @@ func TestRosaMachinePoolReconcile(t *testing.T) {
323323 result : ctrl.Result {},
324324 expect : func (m * mocks.MockOCMClientMockRecorder ) {
325325 m .GetNodePool (gomock .Any (), gomock .Any ()).DoAndReturn (func (clusterId string , nodePoolID string ) (* cmv1.NodePool , bool , error ) {
326- nodePoolBuilder := nodePoolBuilder (rosaMachinePool (2 ).Spec , ownerMachinePool (2 ).Spec )
326+ nodePoolBuilder := nodePoolBuilder (rosaMachinePool (2 ).Spec , ownerMachinePool (2 ).Spec , rosacontrolplanev1 . Stable )
327327 statusBuilder := (& cmv1.NodePoolStatusBuilder {}).CurrentReplicas (1 )
328328 autoscalingBuilder := (& cmv1.NodePoolAutoscalingBuilder {}).MinReplica (1 ).MaxReplica (1 )
329329 nodePool , err := nodePoolBuilder .ID ("node-pool-1" ).Autoscaling (autoscalingBuilder ).Replicas (1 ).Status (statusBuilder ).Build ()
@@ -463,7 +463,7 @@ func TestRosaMachinePoolReconcile(t *testing.T) {
463463 nodePoolName := "node-pool-1"
464464 expect := func (m * mocks.MockOCMClientMockRecorder ) {
465465 m .GetNodePool (gomock .Any (), gomock .Any ()).DoAndReturn (func (clusterId string , nodePoolID string ) (* cmv1.NodePool , bool , error ) {
466- nodePoolBuilder := nodePoolBuilder (mp .Spec , omp .Spec )
466+ nodePoolBuilder := nodePoolBuilder (mp .Spec , omp .Spec , rosacontrolplanev1 . Stable )
467467 nodePool , err := nodePoolBuilder .ID (nodePoolName ).Build ()
468468 g .Expect (err ).NotTo (HaveOccurred ())
469469 return nodePool , true , nil
0 commit comments