Skip to content

Commit 61f73a9

Browse files
committed
fix e2es
Signed-off-by: Britania Rodriguez Reyes <[email protected]>
1 parent e5c846f commit 61f73a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/e2e/cluster_staged_updaterun_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ var _ = Describe("test CRP rollout with staged update run", func() {
229229
})
230230

231231
It("Should rollout resources to all the members after approval and complete the cluster staged update run successfully", func() {
232-
validateAndApproveClusterApprovalRequests(updateRunNames[0], envProd)
232+
validateAndApproveClusterApprovalRequests(updateRunNames[1], envProd)
233233

234234
By("Should rollout resources to member-cluster-1 first because of its name")
235235
checkIfPlacedWorkResourcesOnMemberClustersInUpdateRun([]*framework.Cluster{allMemberClusters[0]})

test/e2e/staged_updaterun_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ var _ = Describe("test RP rollout with staged update run", Label("resourceplacem
219219
})
220220

221221
It("Should rollout resources to all the members after approval and complete the staged update run successfully", func() {
222-
validateAndApproveNamespacedApprovalRequests(updateRunNames[0], testNamespace, envProd)
222+
validateAndApproveNamespacedApprovalRequests(updateRunNames[1], testNamespace, envProd)
223223

224224
By("Should rollout resources to member-cluster-1 first because of its name")
225225
checkIfPlacedWorkResourcesOnMemberClustersInUpdateRun([]*framework.Cluster{allMemberClusters[0]})
226+
226227
surSucceededActual := stagedUpdateRunStatusSucceededActual(updateRunNames[1], testNamespace, resourceSnapshotIndex2nd, policySnapshotIndex1st, len(allMemberClusters), defaultApplyStrategy, &strategy.Spec, [][]string{{allMemberClusterNames[1]}, {allMemberClusterNames[0], allMemberClusterNames[2]}}, nil, nil, nil)
227228
Eventually(surSucceededActual, updateRunEventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to validate updateRun %s/%s succeeded", testNamespace, updateRunNames[1])
228229
By("Verify that new the configmap is updated on all member clusters")

0 commit comments

Comments
 (0)