@@ -160,7 +160,7 @@ var _ = Describe("UpdateRun execution tests - double stages", func() {
160160 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
161161
162162 By ("Validating the initialization succeeded and the execution started" )
163- initialized := generateSucceededInitializationStatus (crp , updateRun , policySnapshot , updateStrategy , clusterResourceOverride )
163+ initialized := generateSucceededInitializationStatus (crp , updateRun , testResourceSnapshotIndex , policySnapshot , updateStrategy , clusterResourceOverride )
164164 wantStatus = generateExecutionStartedStatus (updateRun , initialized )
165165 validateClusterStagedUpdateRunStatus (ctx , updateRun , wantStatus , "" )
166166
@@ -521,7 +521,7 @@ var _ = Describe("UpdateRun execution tests - double stages", func() {
521521 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
522522
523523 By ("Validating the initialization succeeded and the execution started" )
524- initialized := generateSucceededInitializationStatus (crp , updateRun , policySnapshot , updateStrategy , clusterResourceOverride )
524+ initialized := generateSucceededInitializationStatus (crp , updateRun , testResourceSnapshotIndex , policySnapshot , updateStrategy , clusterResourceOverride )
525525 wantStatus = generateExecutionStartedStatus (updateRun , initialized )
526526 validateClusterStagedUpdateRunStatus (ctx , updateRun , wantStatus , "" )
527527
@@ -680,7 +680,7 @@ var _ = Describe("UpdateRun execution tests - single stage", func() {
680680 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
681681
682682 By ("Validating the initialization succeeded and the execution started" )
683- initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , policySnapshot , updateStrategy )
683+ initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , testResourceSnapshotIndex , policySnapshot , updateStrategy )
684684 wantStatus = generateExecutionStartedStatus (updateRun , initialized )
685685 validateClusterStagedUpdateRunStatus (ctx , updateRun , wantStatus , "" )
686686
@@ -774,7 +774,7 @@ var _ = Describe("UpdateRun execution tests - single stage", func() {
774774 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
775775
776776 By ("Validating the initialization succeeded and the execution started" )
777- initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , policySnapshot , updateStrategy )
777+ initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , testResourceSnapshotIndex , policySnapshot , updateStrategy )
778778 wantStatus = generateExecutionStartedStatus (updateRun , initialized )
779779 validateClusterStagedUpdateRunStatus (ctx , updateRun , wantStatus , "" )
780780
@@ -883,7 +883,7 @@ var _ = Describe("UpdateRun execution tests - single stage", func() {
883883 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
884884
885885 By ("Validating the initialization succeeded and the execution started" )
886- initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , policySnapshot , updateStrategy )
886+ initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , testResourceSnapshotIndex , policySnapshot , updateStrategy )
887887 wantStatus = generateExecutionStartedStatus (updateRun , initialized )
888888 validateClusterStagedUpdateRunStatus (ctx , updateRun , wantStatus , "" )
889889
@@ -1014,7 +1014,7 @@ var _ = Describe("UpdateRun execution tests - single stage", func() {
10141014 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
10151015
10161016 By ("Validating the initialization succeeded and the execution started" )
1017- initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , policySnapshot , updateStrategy )
1017+ initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , testResourceSnapshotIndex , policySnapshot , updateStrategy )
10181018 wantStatus = generateExecutionStartedStatus (updateRun , initialized )
10191019 validateClusterStagedUpdateRunStatus (ctx , updateRun , wantStatus , "" )
10201020
@@ -1106,7 +1106,7 @@ var _ = Describe("UpdateRun execution tests - single stage", func() {
11061106 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
11071107
11081108 By ("Validating the initialization succeeded and the execution started" )
1109- initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , policySnapshot , updateStrategy )
1109+ initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , testResourceSnapshotIndex , policySnapshot , updateStrategy )
11101110 wantStatus = generateExecutionStartedStatus (updateRun , initialized )
11111111 validateClusterStagedUpdateRunStatus (ctx , updateRun , wantStatus , "" )
11121112
@@ -1163,7 +1163,7 @@ var _ = Describe("UpdateRun execution tests - single stage", func() {
11631163 Expect (k8sClient .Create (ctx , updateRun )).To (Succeed ())
11641164
11651165 By ("Validating the initialization succeeded and the execution started" )
1166- initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , policySnapshot , updateStrategy )
1166+ initialized := generateSucceededInitializationStatusForSmallClusters (crp , updateRun , testResourceSnapshotIndex , policySnapshot , updateStrategy )
11671167 wantStatus = generateExecutionStartedStatus (updateRun , initialized )
11681168 validateClusterStagedUpdateRunStatus (ctx , updateRun , wantStatus , "" )
11691169 })
0 commit comments