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:
@@ -26,7 +26,7 @@ def setup_method_fixture():
|
||||
assert 'success' in client.conf(
|
||||
{
|
||||
"listeners": {
|
||||
"*:7080": {
|
||||
"*:8080": {
|
||||
"pass": "routes",
|
||||
"tls": {"certificate": "default", "session": {}},
|
||||
}
|
||||
@@ -45,11 +45,11 @@ def add_session(cache_size=None, timeout=None):
|
||||
if timeout is not None:
|
||||
session['timeout'] = timeout
|
||||
|
||||
return client.conf(session, 'listeners/*:7080/tls/session')
|
||||
return client.conf(session, 'listeners/*:8080/tls/session')
|
||||
|
||||
|
||||
def connect(ctx=None, session=None):
|
||||
sock = socket.create_connection(('127.0.0.1', 7080))
|
||||
sock = socket.create_connection(('127.0.0.1', 8080))
|
||||
|
||||
if ctx is None:
|
||||
ctx = Context(TLSv1_2_METHOD)
|
||||
|
||||
Reference in New Issue
Block a user