mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
feat(GODT-2538): implement smart picking of default IMAP/SMTP ports
This commit is contained in:
24
tests/features/bridge/default_ports.feature
Normal file
24
tests/features/bridge/default_ports.feature
Normal file
@ -0,0 +1,24 @@
|
||||
Feature: Bridge picks default ports wisely
|
||||
|
||||
Scenario: bridge picks ports for IMAP and SMTP using default values.
|
||||
When bridge starts
|
||||
Then bridge IMAP port is 1143
|
||||
Then bridge SMTP port is 1025
|
||||
|
||||
Scenario: bridge picks ports for IMAP wisely when default port is busy.
|
||||
When the network port 1143 is busy
|
||||
And bridge starts
|
||||
Then bridge IMAP port is 1144
|
||||
Then bridge SMTP port is 1025
|
||||
|
||||
Scenario: bridge picks ports for SMTP wisely when default port is busy.
|
||||
When the network port range 1025-1030 is busy
|
||||
And bridge starts
|
||||
Then bridge IMAP port is 1143
|
||||
Then bridge SMTP port is 1031
|
||||
|
||||
Scenario: bridge picks ports for IMAP SMTP wisely when default ports are busy.
|
||||
When the network port range 1025-1200 is busy
|
||||
And bridge starts
|
||||
Then bridge IMAP port is 1201
|
||||
Then bridge SMTP port is 1202
|
||||
Reference in New Issue
Block a user