From 258986c7cef89c19d654c6c37657eef23890979c Mon Sep 17 00:00:00 2001 From: John Gardiner Myers Date: Mon, 14 Feb 2022 23:12:54 -0800 Subject: [PATCH] Add test case for extracting IPv6 from Ingress status --- source/ingress_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/ingress_test.go b/source/ingress_test.go index ae3dd3b7c..cdd23505a 100644 --- a/source/ingress_test.go +++ b/source/ingress_test.go @@ -409,6 +409,25 @@ func testIngressEndpoints(t *testing.T) { }, }, }, + { + title: "ipv6 ingress", + targetNamespace: "", + ingressItems: []fakeIngress{ + { + name: "fake1", + namespace: namespace, + dnsnames: []string{"example.org"}, + ips: []string{"2001:DB8::1"}, + }, + }, + expected: []*endpoint.Endpoint{ + { + DNSName: "example.org", + RecordType: endpoint.RecordTypeAAAA, + Targets: endpoint.Targets{"2001:DB8::1"}, + }, + }, + }, { title: "ignore rules", targetNamespace: "",