Skip to content

Commit

Permalink
backport of commit 01a563d
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes committed Aug 8, 2023
1 parent 33fce1f commit bd717ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions control-plane/api-gateway/binding/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,14 @@ func TestValidateListeners(t *testing.T) {
expectedAcceptedErr: errListenerPortUnavailable,
},
"conflicted port": {
listeners: []gwv1beta1.Listener{
{Protocol: gwv1beta1.TCPProtocolType, Port: 80},
{Protocol: gwv1beta1.TCPProtocolType, Port: 80},
},
expectedAcceptedErr: errListenerPortUnavailable,
listenerIndexToTest: 1,
},
"conflicted mapped port": {
listeners: []gwv1beta1.Listener{
{Protocol: gwv1beta1.TCPProtocolType, Port: 80},
{Protocol: gwv1beta1.TCPProtocolType, Port: 2080},
Expand Down

0 comments on commit bd717ab

Please sign in to comment.