Add test case for extracting IPv6 from Ingress status

This commit is contained in:
John Gardiner Myers 2022-02-14 23:12:54 -08:00
parent 2eed9cb6ba
commit 258986c7ce

View File

@ -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: "",