chore(ingress): add test with invalid hostname

This commit is contained in:
Eric Bailey 2024-03-04 15:49:02 +01:00
parent 36a6e19dd5
commit 1eec428bf7

View File

@ -264,6 +264,13 @@ func testEndpointsFromIngress(t *testing.T) {
expected: []*endpoint.Endpoint{},
ignoreIngressRulesSpec: true,
},
{
title: "invalid hostname does not generate endpoints",
ingress: fakeIngress{
dnsnames: []string{"this-is-an-exceedingly-long-label-that-external-dns-should-reject.example.org"},
},
expected: []*endpoint.Endpoint{},
},
} {
t.Run(ti.title, func(t *testing.T) {
realIngress := ti.ingress.Ingress()