Tests: 8XXX used as default port range.
After the launch of the project, the testing infrastructure was shared with nginx project in some cases. To avoid port overlap, a decision was made to shift the port range for Unit tests. This problem was resolved a long time ago and is no longer relevant, so it is now safe to use port 8XXX range as the default, as it is more appropriate for testing purposes.
This commit is contained in:
@@ -15,7 +15,7 @@ def setup_method_fixture():
|
||||
assert 'success' in client.conf(
|
||||
{
|
||||
"listeners": {
|
||||
"*:7080": {
|
||||
"*:8080": {
|
||||
"pass": "routes",
|
||||
"tls": {"certificate": "default"},
|
||||
}
|
||||
@@ -55,7 +55,7 @@ def test_tls_conf_command():
|
||||
"certificate": "default",
|
||||
"conf_commands": {"protocol": f'-{protocol}'},
|
||||
},
|
||||
'listeners/*:7080/tls',
|
||||
'listeners/*:8080/tls',
|
||||
), 'protocol disabled'
|
||||
|
||||
sock.close()
|
||||
@@ -84,7 +84,7 @@ def test_tls_conf_command():
|
||||
"cipherstring": f"{cipher[1]}:!{cipher[0]}",
|
||||
},
|
||||
},
|
||||
'listeners/*:7080/tls',
|
||||
'listeners/*:8080/tls',
|
||||
), 'cipher disabled'
|
||||
|
||||
if len(ciphers) > 1:
|
||||
@@ -106,7 +106,7 @@ def test_tls_conf_command_invalid(skip_alert):
|
||||
def check_conf_commands(conf_commands):
|
||||
assert 'error' in client.conf(
|
||||
{"certificate": "default", "conf_commands": conf_commands},
|
||||
'listeners/*:7080/tls',
|
||||
'listeners/*:8080/tls',
|
||||
), 'ivalid conf_commands'
|
||||
|
||||
check_conf_commands([])
|
||||
|
||||
Reference in New Issue
Block a user