mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +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{},
|
expected: []*endpoint.Endpoint{},
|
||||||
ignoreIngressRulesSpec: true,
|
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) {
|
t.Run(ti.title, func(t *testing.T) {
|
||||||
realIngress := ti.ingress.Ingress()
|
realIngress := ti.ingress.Ingress()
|
||||||
|
Loading…
Reference in New Issue
Block a user