@@ -526,7 +526,7 @@ var _ = Describe("test RP rollout with staged update run", Label("resourceplacem
526526 })
527527
528528 It ("Should rollout resources to member-cluster-3 and complete the staged update run successfully" , func () {
529- surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunNames [0 ], testNamespace , fmt . Sprintf ( testResourceSnapshotNameTmpl , rpName , resourceSnapshotIndex1st ) , policySnapshotIndex1st , 1 , defaultApplyStrategy , & strategy .Spec , [][]string {{}, {allMemberClusterNames [2 ]}}, nil , nil , nil )
529+ surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunNames [0 ], testNamespace , resourceSnapshotIndex1st , policySnapshotIndex1st , 1 , defaultApplyStrategy , & strategy .Spec , [][]string {{}, {allMemberClusterNames [2 ]}}, nil , nil , nil )
530530 Eventually (surSucceededActual , updateRunEventuallyDuration , eventuallyInterval ).Should (Succeed (), "Failed to validate updateRun %s/%s succeeded" , testNamespace , updateRunNames [0 ])
531531 checkIfPlacedWorkResourcesOnMemberClustersInUpdateRun ([]* framework.Cluster {allMemberClusters [2 ]})
532532 checkIfRemovedConfigMapFromMemberClustersConsistently ([]* framework.Cluster {allMemberClusters [0 ], allMemberClusters [1 ]})
@@ -575,7 +575,7 @@ var _ = Describe("test RP rollout with staged update run", Label("resourceplacem
575575 })
576576
577577 It ("Should rollout resources to member-cluster-1 too and complete the staged update run successfully" , func () {
578- surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunNames [1 ], testNamespace , fmt . Sprintf ( testResourceSnapshotNameTmpl , rpName , resourceSnapshotIndex1st ) , policySnapshotIndex1st , 3 , defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , nil )
578+ surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunNames [1 ], testNamespace , resourceSnapshotIndex1st , policySnapshotIndex1st , 3 , defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , nil )
579579 Eventually (surSucceededActual , updateRunEventuallyDuration , eventuallyInterval ).Should (Succeed (), "Failed to validate updateRun %s/%s succeeded" , testNamespace , updateRunNames [1 ])
580580 checkIfPlacedWorkResourcesOnMemberClustersInUpdateRun (allMemberClusters )
581581 })
@@ -621,7 +621,7 @@ var _ = Describe("test RP rollout with staged update run", Label("resourceplacem
621621 })
622622
623623 It ("Should remove resources on member-cluster-1 and complete the staged update run successfully" , func () {
624- surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunNames [2 ], testNamespace , fmt . Sprintf ( testResourceSnapshotNameTmpl , rpName , resourceSnapshotIndex1st ) , policySnapshotIndex1st , 2 , defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [2 ]}}, []string {allMemberClusterNames [0 ]}, nil , nil )
624+ surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunNames [2 ], testNamespace , resourceSnapshotIndex1st , policySnapshotIndex1st , 2 , defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [2 ]}}, []string {allMemberClusterNames [0 ]}, nil , nil )
625625 Eventually (surSucceededActual , 2 * updateRunEventuallyDuration , eventuallyInterval ).Should (Succeed (), "Failed to validate updateRun %s/%s succeeded" , testNamespace , updateRunNames [2 ])
626626 checkIfRemovedConfigMapFromMemberClusters ([]* framework.Cluster {allMemberClusters [0 ]})
627627 checkIfPlacedWorkResourcesOnMemberClustersConsistently ([]* framework.Cluster {allMemberClusters [1 ], allMemberClusters [2 ]})
@@ -766,7 +766,7 @@ var _ = Describe("test RP rollout with staged update run", Label("resourceplacem
766766 })
767767
768768 It ("Should rollout resources to member-cluster-1 and member-cluster-3 too and complete the staged update run successfully" , func () {
769- surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunName , testNamespace , fmt . Sprintf ( testResourceSnapshotNameTmpl , rpName , resourceSnapshotIndex1st ) , policySnapshotIndex1st , len (allMemberClusters ), defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , wantROs )
769+ surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunName , testNamespace , resourceSnapshotIndex1st , policySnapshotIndex1st , len (allMemberClusters ), defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , wantROs )
770770 Eventually (surSucceededActual , updateRunEventuallyDuration , eventuallyInterval ).Should (Succeed (), "Failed to validate updateRun %s/%s succeeded" , testNamespace , updateRunName )
771771 checkIfPlacedWorkResourcesOnMemberClustersInUpdateRun (allMemberClusters )
772772 })
@@ -860,7 +860,7 @@ var _ = Describe("test RP rollout with staged update run", Label("resourceplacem
860860 })
861861
862862 It ("Should report diff for member-cluster-1 and member-cluster-3 too and complete the staged update run successfully" , func () {
863- surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunName , testNamespace , fmt . Sprintf ( testResourceSnapshotNameTmpl , rpName , resourceSnapshotIndex1st ) , policySnapshotIndex1st , len (allMemberClusters ), applyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , nil )
863+ surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunName , testNamespace , resourceSnapshotIndex1st , policySnapshotIndex1st , len (allMemberClusters ), applyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , nil )
864864 Eventually (surSucceededActual , updateRunEventuallyDuration , eventuallyInterval ).Should (Succeed (), "Failed to validate updateRun %s/%s succeeded" , testNamespace , updateRunName )
865865 })
866866
@@ -969,7 +969,7 @@ var _ = Describe("test RP rollout with staged update run", Label("resourceplacem
969969 validateAndApproveNamespacedApprovalRequests (updateRunName , testNamespace , envCanary )
970970
971971 // Verify complete rollout.
972- surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunName , testNamespace , fmt . Sprintf ( testResourceSnapshotNameTmpl , rpName , resourceSnapshotIndex2nd ) , policySnapshotIndex1st , len (allMemberClusters ), defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , nil )
972+ surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunName , testNamespace , resourceSnapshotIndex2nd , policySnapshotIndex1st , len (allMemberClusters ), defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , nil )
973973 Eventually (surSucceededActual , updateRunEventuallyDuration , eventuallyInterval ).Should (Succeed (), "Failed to validate updateRun %s/%s succeeded" , testNamespace , updateRunName )
974974
975975 // Verify new configmap is on all member clusters.
@@ -1045,7 +1045,7 @@ var _ = Describe("test RP rollout with staged update run", Label("resourceplacem
10451045
10461046 validateAndApproveNamespacedApprovalRequests (updateRunName , testNamespace , envCanary )
10471047
1048- surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunName , testNamespace , fmt . Sprintf ( testResourceSnapshotNameTmpl , rpName , resourceSnapshotIndex1st ) , policySnapshotIndex1st , len (allMemberClusters ), defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , nil )
1048+ surSucceededActual := stagedUpdateRunStatusSucceededActual (updateRunName , testNamespace , resourceSnapshotIndex1st , policySnapshotIndex1st , len (allMemberClusters ), defaultApplyStrategy , & strategy .Spec , [][]string {{allMemberClusterNames [1 ]}, {allMemberClusterNames [0 ], allMemberClusterNames [2 ]}}, nil , nil , nil )
10491049 Eventually (surSucceededActual , updateRunEventuallyDuration , eventuallyInterval ).Should (Succeed (), "Failed to validate updateRun %s/%s succeeded" , testNamespace , updateRunName )
10501050
10511051 checkIfPlacedWorkResourcesOnMemberClustersInUpdateRun (allMemberClusters )
0 commit comments