@@ -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