You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eventually(crpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update CRP %s status for external strategy", crpName)
984
+
It("Should update crp status to reflect external rollout strategy with new observed generation and no other change", func() {
Consistently(crpStatusUpdatedActual, consistentlyDuration, consistentlyInterval).Should(Succeed(), "Failed to keep CRP %s status as expected", crpName)
Eventually(rpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update RP %s/%s status as expected", testNamespace, rpName)
Eventually(rpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update RP %s/%s status as expected", testNamespace, rpName)
941
+
})
942
+
943
+
It("Update the configmap on hub but should not rollout to member clusters", func() {
944
+
updateConfigMapSucceed(&newConfigMap)
945
+
946
+
// Verify old configmap is still on all member clusters.
Consistently(configMapActual, consistentlyDuration, consistentlyInterval).Should(Succeed(), "Failed to keep old configmap %s data on cluster %s", oldConfigMap.Name, cluster.ClusterName)
950
+
}
951
+
})
952
+
953
+
It("Should have the new resource snapshot but RP status should remain completed with old snapshot", func() {
Consistently(rpStatusUpdatedActual, consistentlyDuration, consistentlyInterval).Should(Succeed(), "Failed to keep RP %s/%s status as expected", testNamespace, rpName)
959
+
})
960
+
961
+
It("Create a staged update run with new resourceSnapshotIndex and verify rollout happens", func() {
Eventually(configMapActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update to the new configmap %s on cluster %s", newConfigMap.Name, allMemberClusterNames[1])
Eventually(configMapActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update to the new configmap %s on cluster %s", newConfigMap.Name, cluster.ClusterName)
979
+
}
980
+
})
981
+
982
+
It("Should update rp status as completed with new snapshot", func() {
Eventually(rpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update RP %s/%s status as expected", testNamespace, rpName)
986
+
})
987
+
})
988
+
989
+
Context("Test RP rollout strategy transition from external to rollingUpdate", Ordered, func() {
Eventually(rpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update RP %s/%s status as expected", testNamespace, rpName)
1041
+
})
1042
+
1043
+
It("Create updateRun and verify resources are rolled out", func() {
Eventually(rpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update RP %s/%s status as expected", testNamespace, rpName)
1058
+
})
1059
+
1060
+
It("Update the configmap on hub but should not rollout to member clusters with external strategy", func() {
1061
+
updateConfigMapSucceed(&newConfigMap)
1062
+
1063
+
// Verify old configmap is still on all member clusters.
Consistently(configMapActual, consistentlyDuration, consistentlyInterval).Should(Succeed(), "Failed to keep old configmap %s data on cluster %s", oldConfigMap.Name, cluster.ClusterName)
1067
+
}
1068
+
})
1069
+
1070
+
It("Should have new resource snapshot but RP status should remain completed with old snapshot", func() {
Consistently(rpStatusUpdatedActual, consistentlyDuration, consistentlyInterval).Should(Succeed(), "Failed to keep RP %s/%s status as expected", testNamespace, rpName)
1077
+
})
1078
+
1079
+
It("Update RP to use rollingUpdate strategy", func() {
Eventually(rpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update RP %s/%s status with rollingUpdate strategy", testNamespace, rpName)
1096
+
1097
+
// Verify new configmap is on all member clusters.
Eventually(configMapActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update to the new configmap %s on cluster %s", newConfigMap.Name, cluster.ClusterName)
0 commit comments