mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 17:16:59 +02:00
chore(ingress): add test with invalid hostname
This commit is contained in:
parent
36a6e19dd5
commit
1eec428bf7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user