Skip to content

Commit

Permalink
chore(ingress): add test with invalid hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
yurrriq committed Mar 4, 2024
1 parent 36a6e19 commit 1eec428
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/ingress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1eec428

Please sign in to comment.