Skip to content

Commit

Permalink
add one more test for user-conflicted ports and mapping-conflicted ports
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes committed Aug 3, 2023
1 parent bb865e1 commit 220f624
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 220f624

Please sign in to comment.