Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Abhradeep Chakraborty <[email protected]>
  • Loading branch information
Abhra303 committed Nov 25, 2024
1 parent 0151f9d commit f47e21f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions e2e/dragonfly_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,19 @@ var _ = Describe("Dragonfly Lifecycle tests", Ordered, FlakeAttempts(3), func()

})

It("Should recreate missing statefulset", func() {
var ss appsv1.StatefulSet
err := k8sClient.Get(ctx, types.NamespacedName{
Name: name,
Namespace: namespace,
}, &ss)
Expect(err).To(BeNil())

Expect(k8sClient.Delete(ctx, &ss)).To(BeNil())
err = waitForStatefulSetReady(ctx, k8sClient, name, namespace, 2*time.Minute)
Expect(err).To(BeNil())
})

It("Update to resources and args should be propagated successfully", func() {
newResources := corev1.ResourceRequirements{
Limits: corev1.ResourceList{
Expand Down

0 comments on commit f47e21f

Please sign in to comment.