@@ -138,7 +138,7 @@ var _ = Describe("Updaterun initialization tests", func() {
138138 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
139139
140140 By ("Validating the initialization failed" )
141- validateFailedInitCondition (ctx , updateRun , "parent clusterResourcePlacement not found" )
141+ validateFailedInitCondition (ctx , updateRun , "parent placement not found" )
142142 })
143143
144144 It ("Should fail to initialize if CRP does not have external rollout strategy type" , func () {
@@ -151,7 +151,7 @@ var _ = Describe("Updaterun initialization tests", func() {
151151
152152 By ("Validating the initialization failed" )
153153 validateFailedInitCondition (ctx , updateRun ,
154- "parent clusterResourcePlacement does not have an external rollout strategy" )
154+ "parent placement does not have an external rollout strategy" )
155155 })
156156
157157 It ("Should copy the ApplyStrategy in the CRP to the UpdateRun" , func () {
@@ -405,7 +405,7 @@ var _ = Describe("Updaterun initialization tests", func() {
405405 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
406406
407407 By ("Validating the initialization failed" )
408- validateFailedInitCondition (ctx , updateRun , "no scheduled or to-be-deleted clusterResourceBindings found" )
408+ validateFailedInitCondition (ctx , updateRun , "no scheduled or to-be-deleted bindings found" )
409409 })
410410
411411 It ("Should fail to initialize if the number of selected bindings does not match the observed cluster count" , func () {
@@ -505,7 +505,7 @@ var _ = Describe("Updaterun initialization tests", func() {
505505
506506 By ("Validating the initialization not failed due to no selected cluster" )
507507 // it should fail due to strategy not found
508- validateFailedInitCondition (ctx , updateRun , "referenced clusterStagedUpdateStrategy not found" )
508+ validateFailedInitCondition (ctx , updateRun , "referenced updateStrategy not found" )
509509 })
510510
511511 It ("Should update the ObservedClusterCount to the number of scheduled bindings if it's pickAll policy" , func () {
@@ -517,7 +517,7 @@ var _ = Describe("Updaterun initialization tests", func() {
517517
518518 By ("Validating the initialization not failed due to no selected cluster" )
519519 // it should fail due to strategy not found
520- validateFailedInitCondition (ctx , updateRun , "referenced clusterStagedUpdateStrategy not found" )
520+ validateFailedInitCondition (ctx , updateRun , "referenced updateStrategy not found" )
521521
522522 By ("Validating the ObservedClusterCount is updated" )
523523 Expect (updateRun .Status .PolicyObservedClusterCount ).To (Equal (1 ), "failed to update the updateRun PolicyObservedClusterCount status" )
@@ -565,7 +565,7 @@ var _ = Describe("Updaterun initialization tests", func() {
565565 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
566566
567567 By ("Validating the initialization failed" )
568- validateFailedInitCondition (ctx , updateRun , "referenced clusterStagedUpdateStrategy not found" )
568+ validateFailedInitCondition (ctx , updateRun , "referenced updateStrategy not found" )
569569 })
570570
571571 Context ("Test computeRunStageStatus" , func () {
@@ -777,7 +777,7 @@ var _ = Describe("Updaterun initialization tests", func() {
777777 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
778778
779779 By ("Validating the initialization failed" )
780- validateFailedInitCondition (ctx , updateRun , "no clusterResourceSnapshots with index `0` found" )
780+ validateFailedInitCondition (ctx , updateRun , "no resourceSnapshots with index `0` found" )
781781
782782 By ("Checking update run status metrics are emitted" )
783783 validateUpdateRunMetricsEmitted (generateInitializationFailedMetric (updateRun ))
@@ -792,7 +792,7 @@ var _ = Describe("Updaterun initialization tests", func() {
792792 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
793793
794794 By ("Validating the initialization failed" )
795- validateFailedInitCondition (ctx , updateRun , "no clusterResourceSnapshots with index `0` found" )
795+ validateFailedInitCondition (ctx , updateRun , "no resourceSnapshots with index `0` found" )
796796
797797 By ("Checking update run status metrics are emitted" )
798798 validateUpdateRunMetricsEmitted (generateInitializationFailedMetric (updateRun ))
@@ -807,7 +807,7 @@ var _ = Describe("Updaterun initialization tests", func() {
807807 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
808808
809809 By ("Validating the initialization failed" )
810- validateFailedInitCondition (ctx , updateRun , "no clusterResourceSnapshots with index `0` found" )
810+ validateFailedInitCondition (ctx , updateRun , "no resourceSnapshots with index `0` found" )
811811
812812 By ("Checking update run status metrics are emitted" )
813813 validateUpdateRunMetricsEmitted (generateInitializationFailedMetric (updateRun ))
@@ -822,7 +822,7 @@ var _ = Describe("Updaterun initialization tests", func() {
822822 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
823823
824824 By ("Validating the initialization failed" )
825- validateFailedInitCondition (ctx , updateRun , "no master clusterResourceSnapshot found for clusterResourcePlacement" )
825+ validateFailedInitCondition (ctx , updateRun , "no master resourceSnapshot found for clusterResourcePlacement" )
826826
827827 By ("Checking update run status metrics are emitted" )
828828 validateUpdateRunMetricsEmitted (generateInitializationFailedMetric (updateRun ))
0 commit comments