From 5b3a166c9641433c9addeeca9794dbe2a2525b7d Mon Sep 17 00:00:00 2001 From: Michael Nairn Date: Thu, 7 Nov 2024 16:19:39 +0000 Subject: [PATCH] fix: Multi record test Test was incorrectly checking for "GEO-" in the aws provider specific endpoint values. Signed-off-by: Michael Nairn --- test/e2e/multi_record_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/multi_record_test.go b/test/e2e/multi_record_test.go index e3478f0..74c5632 100644 --- a/test/e2e/multi_record_test.go +++ b/test/e2e/multi_record_test.go @@ -612,6 +612,7 @@ var _ = Describe("Multi Record Test", Labels{"multi_record"}, func() { if !provider.IsISO3166Alpha2Code(geoCode) { awsGeoCodeKey = "aws/geolocation-continent-code" } + awsGeoCodeValue := strings.TrimPrefix(geoCode, "GEO-") Expect(zoneEndpoints).To(ContainElement(PointTo(MatchFields(IgnoreExtras, Fields{ "DNSName": Equal(klbHostName), @@ -621,7 +622,7 @@ var _ = Describe("Multi Record Test", Labels{"multi_record"}, func() { "RecordTTL": Equal(externaldnsendpoint.TTL(300)), "ProviderSpecific": Equal(externaldnsendpoint.ProviderSpecific{ {Name: "alias", Value: "false"}, - {Name: awsGeoCodeKey, Value: geoCode}, + {Name: awsGeoCodeKey, Value: awsGeoCodeValue}, }), })))) totalEndpointsChecked++ @@ -633,7 +634,7 @@ var _ = Describe("Multi Record Test", Labels{"multi_record"}, func() { "SetIdentifier": Equal(geoCode), "RecordTTL": Equal(externaldnsendpoint.TTL(300)), "ProviderSpecific": Equal(externaldnsendpoint.ProviderSpecific{ - {Name: awsGeoCodeKey, Value: geoCode}, + {Name: awsGeoCodeKey, Value: awsGeoCodeValue}, }), })))) totalEndpointsChecked++