From a6b9c525236580cc7eb7d79dacef8c67e7e3960f Mon Sep 17 00:00:00 2001 From: Jonathan Innis Date: Wed, 14 Aug 2024 09:44:03 -0700 Subject: [PATCH] test: Fix AMI Discovery for v0.37.x (#6738) --- test/suites/integration/ami_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/suites/integration/ami_test.go b/test/suites/integration/ami_test.go index d5020145529b..2bee99f8444e 100644 --- a/test/suites/integration/ami_test.go +++ b/test/suites/integration/ami_test.go @@ -64,7 +64,7 @@ var _ = Describe("AMI", func() { }) It("should use the most recent AMI when discovering multiple", func() { // choose an old static image that will definitely have an older creation date - oldCustomAMI := env.GetAMIBySSMPath(fmt.Sprintf("/aws/service/eks/optimized-ami/%[1]s/amazon-linux-2023/x86_64/standard/amazon-eks-node-al2023-x86_64-standard-%[1]s-v20240307/image_id", env.K8sVersion())) + oldCustomAMI := env.GetAMIBySSMPath(fmt.Sprintf("/aws/service/eks/optimized-ami/%[1]s/amazon-linux-2023/x86_64/standard/amazon-eks-node-al2023-x86_64-standard-%[1]s-v20240514/image_id", env.K8sVersion())) nodeClass.Spec.AMISelectorTerms = []v1beta1.AMISelectorTerm{ { ID: customAMI,