From aff20157a565a035c0e9aba60a1d976f4f543b9e Mon Sep 17 00:00:00 2001 From: Jonathan Innis Date: Thu, 11 Jan 2024 13:54:26 -0800 Subject: [PATCH] Update SSM parameter to use AL2 instead of AL --- test/suites/drift/suite_test.go | 4 ++-- test/suites/expiration/suite_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/suites/drift/suite_test.go b/test/suites/drift/suite_test.go index 5b6b534b0f94..3950df033e95 100644 --- a/test/suites/drift/suite_test.go +++ b/test/suites/drift/suite_test.go @@ -765,9 +765,9 @@ var _ = Describe("Drift", Label("AWS"), func() { startingNodeClaimState := env.EventuallyExpectCreatedNodeClaimCount("==", int(numPods)) env.EventuallyExpectCreatedNodeCount("==", int(numPods)) - // Drift the nodeClaim with bad configuration + // Drift the nodeClaim with bad configuration that will not register a NodeClaim parameter, err := env.SSMAPI.GetParameter(&ssm.GetParameterInput{ - Name: awssdk.String("/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-ebs"), + Name: awssdk.String("/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-ebs"), }) Expect(err).ToNot(HaveOccurred()) nodeClass.Spec.AMISelectorTerms = []v1beta1.AMISelectorTerm{{ID: *parameter.Parameter.Value}} diff --git a/test/suites/expiration/suite_test.go b/test/suites/expiration/suite_test.go index 0f9f59a2ef8a..80f912fe27bf 100644 --- a/test/suites/expiration/suite_test.go +++ b/test/suites/expiration/suite_test.go @@ -518,7 +518,7 @@ var _ = Describe("Expiration", func() { // Set a configuration that will not register a NodeClaim parameter, err := env.SSMAPI.GetParameter(&ssm.GetParameterInput{ - Name: lo.ToPtr("/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-ebs"), + Name: lo.ToPtr("/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-ebs"), }) Expect(err).ToNot(HaveOccurred()) nodeClass.Spec.AMISelectorTerms = []v1beta1.AMISelectorTerm{