Skip to content

Commit

Permalink
fix ip4vip to ipv4 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Ryan committed Sep 17, 2024
1 parent 1afd62a commit 72004cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/apis/configuration/validation/globalconfiguration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,22 +237,22 @@ func TestValidateListeners_PassesOnValidIPListeners(t *testing.T) {
{
name: "UDP and HTTP Listeners with Same Port",
listeners: []conf_v1.Listener{
{Name: "listener-1", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "UDP"},
{Name: "listener-2", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "HTTP"},
{Name: "listener-1", IPv4: "127.0.0.1", Port: 8080, Protocol: "UDP"},
{Name: "listener-2", IPv4: "127.0.0.1", Port: 8080, Protocol: "HTTP"},
},
},
{
name: "HTTP Listeners with Same Port but different IPv4 and IPv6 ip addresses",
listeners: []conf_v1.Listener{
{Name: "listener-1", IPv4IP: "127.0.0.2", IPv6IP: "::1", Port: 8080, Protocol: "HTTP"},
{Name: "listener-2", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "HTTP"},
{Name: "listener-1", IPv4: "127.0.0.2", IPv6: "::1", Port: 8080, Protocol: "HTTP"},
{Name: "listener-2", IPv4: "127.0.0.1", Port: 8080, Protocol: "HTTP"},
},
},
{
name: "UDP and TCP Listeners with Same Port",
listeners: []conf_v1.Listener{
{Name: "listener-1", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "UDP"},
{Name: "listener-2", IPv4IP: "127.0.0.1", Port: 8080, Protocol: "TCP"},
{Name: "listener-1", IPv4: "127.0.0.1", Port: 8080, Protocol: "UDP"},
{Name: "listener-2", IPv4: "127.0.0.1", Port: 8080, Protocol: "TCP"},
},
},
}
Expand Down

0 comments on commit 72004cf

Please sign in to comment.