From ffb19804b49a2346138c1b1dde7439f7d1a5574d Mon Sep 17 00:00:00 2001 From: jigisha620 Date: Tue, 13 Aug 2024 15:46:45 -0700 Subject: [PATCH] test: Update scale test for expiration to not update expireAfter to prevent drift --- test/suites/scale/deprovisioning_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/suites/scale/deprovisioning_test.go b/test/suites/scale/deprovisioning_test.go index 3397eb71ce27..8f70ada80d8d 100644 --- a/test/suites/scale/deprovisioning_test.go +++ b/test/suites/scale/deprovisioning_test.go @@ -589,6 +589,8 @@ var _ = Describe("Deprovisioning", Label(debug.NoWatch), Label(debug.NoEvents), nodeClass.Spec.Kubelet = &v1.KubeletConfiguration{ MaxPods: lo.ToPtr[int32](int32(maxPodDensity)), } + // Enable Expiration + nodePool.Spec.Template.Spec.ExpireAfter.Duration = lo.ToPtr(lo.Must(time.ParseDuration("180s"))) By("waiting for the deployment to deploy all of its pods") env.ExpectCreated(deployment) @@ -616,8 +618,6 @@ var _ = Describe("Deprovisioning", Label(debug.NoWatch), Label(debug.NoEvents), By("kicking off deprovisioning expiration by setting the ttlSecondsUntilExpired value on the nodePool") // Change limits so that replacement nodes will use another nodePool. nodePool.Spec.Limits = disableProvisioningLimits - // Enable Expiration - nodePool.Spec.Template.Spec.ExpireAfter.Duration = lo.ToPtr(time.Duration(0)) noExpireNodePool := test.NodePool(*nodePool.DeepCopy())