@@ -138,7 +138,7 @@ var _ = Describe("Updaterun initialization tests", func() {
138
138
Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
139
139
140
140
By ("Validating the initialization failed" )
141
- validateFailedInitCondition (ctx , updateRun , "parent clusterResourcePlacement not found" )
141
+ validateFailedInitCondition (ctx , updateRun , "parent placement not found" )
142
142
})
143
143
144
144
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() {
151
151
152
152
By ("Validating the initialization failed" )
153
153
validateFailedInitCondition (ctx , updateRun ,
154
- "parent clusterResourcePlacement does not have an external rollout strategy" )
154
+ "parent placement does not have an external rollout strategy" )
155
155
})
156
156
157
157
It ("Should copy the ApplyStrategy in the CRP to the UpdateRun" , func () {
@@ -405,7 +405,7 @@ var _ = Describe("Updaterun initialization tests", func() {
405
405
Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
406
406
407
407
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" )
409
409
})
410
410
411
411
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() {
505
505
506
506
By ("Validating the initialization not failed due to no selected cluster" )
507
507
// it should fail due to strategy not found
508
- validateFailedInitCondition (ctx , updateRun , "referenced clusterStagedUpdateStrategy not found" )
508
+ validateFailedInitCondition (ctx , updateRun , "referenced updateStrategy not found" )
509
509
})
510
510
511
511
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() {
517
517
518
518
By ("Validating the initialization not failed due to no selected cluster" )
519
519
// it should fail due to strategy not found
520
- validateFailedInitCondition (ctx , updateRun , "referenced clusterStagedUpdateStrategy not found" )
520
+ validateFailedInitCondition (ctx , updateRun , "referenced updateStrategy not found" )
521
521
522
522
By ("Validating the ObservedClusterCount is updated" )
523
523
Expect (updateRun .Status .PolicyObservedClusterCount ).To (Equal (1 ), "failed to update the updateRun PolicyObservedClusterCount status" )
@@ -565,7 +565,7 @@ var _ = Describe("Updaterun initialization tests", func() {
565
565
Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
566
566
567
567
By ("Validating the initialization failed" )
568
- validateFailedInitCondition (ctx , updateRun , "referenced clusterStagedUpdateStrategy not found" )
568
+ validateFailedInitCondition (ctx , updateRun , "referenced updateStrategy not found" )
569
569
})
570
570
571
571
Context ("Test computeRunStageStatus" , func () {
@@ -777,7 +777,7 @@ var _ = Describe("Updaterun initialization tests", func() {
777
777
Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
778
778
779
779
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" )
781
781
782
782
By ("Checking update run status metrics are emitted" )
783
783
validateUpdateRunMetricsEmitted (generateInitializationFailedMetric (updateRun ))
@@ -792,7 +792,7 @@ var _ = Describe("Updaterun initialization tests", func() {
792
792
Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
793
793
794
794
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" )
796
796
797
797
By ("Checking update run status metrics are emitted" )
798
798
validateUpdateRunMetricsEmitted (generateInitializationFailedMetric (updateRun ))
@@ -807,7 +807,7 @@ var _ = Describe("Updaterun initialization tests", func() {
807
807
Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
808
808
809
809
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" )
811
811
812
812
By ("Checking update run status metrics are emitted" )
813
813
validateUpdateRunMetricsEmitted (generateInitializationFailedMetric (updateRun ))
@@ -822,7 +822,7 @@ var _ = Describe("Updaterun initialization tests", func() {
822
822
Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
823
823
824
824
By ("Validating the initialization failed" )
825
- validateFailedInitCondition (ctx , updateRun , "no master clusterResourceSnapshot found for clusterResourcePlacement " )
825
+ validateFailedInitCondition (ctx , updateRun , "no master resourceSnapshot found for placement " )
826
826
827
827
By ("Checking update run status metrics are emitted" )
828
828
validateUpdateRunMetricsEmitted (generateInitializationFailedMetric (updateRun ))
0 commit comments