Skip to content

Commit bda3414

Browse files
Wei WengWei Weng
authored andcommitted
fix test
Signed-off-by: Wei Weng <[email protected]>
1 parent 51c1e20 commit bda3414

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

test/e2e/resource_placement_hub_workload_test.go

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,36 @@ var _ = Describe("placing workloads using a CRP with PickAll policy", Label("res
7575
Expect(hubClient.Create(ctx, crp)).To(Succeed(), "Failed to create CRP")
7676

7777
By("waiting for CRP status to update")
78-
crpStatusUpdatedActual := crpStatusUpdatedActual(workResourceIdentifiers(), allMemberClusterNames, nil, "0")
79-
Eventually(crpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update CRP status as expected")
78+
wantSelectedResources := []placementv1beta1.ResourceIdentifier{
79+
{
80+
Kind: "Namespace",
81+
Name: workNamespace.Name,
82+
Version: "v1",
83+
},
84+
{
85+
Group: "apps",
86+
Version: "v1",
87+
Kind: "Deployment",
88+
Name: testDeployment.Name,
89+
Namespace: workNamespace.Name,
90+
},
91+
{
92+
Group: "apps",
93+
Version: "v1",
94+
Kind: "DaemonSet",
95+
Name: testDaemonSet.Name,
96+
Namespace: workNamespace.Name,
97+
},
98+
{
99+
Group: "apps",
100+
Version: "v1",
101+
Kind: "StatefulSet",
102+
Name: testStatefulSet.Name,
103+
Namespace: workNamespace.Name,
104+
},
105+
}
106+
crpStatusUpdatedActual := crpStatusUpdatedActual(wantSelectedResources, allMemberClusterNames, nil, "0")
107+
Eventually(crpStatusUpdatedActual, workloadEventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update CRP status as expected")
80108
})
81109

82110
AfterAll(func() {

0 commit comments

Comments
 (0)