diff --git a/config/server.xml.j2 b/config/server.xml.j2 index 510378e..cf7d07e 100644 --- a/config/server.xml.j2 +++ b/config/server.xml.j2 @@ -3,32 +3,35 @@ + + + + + + - - diff --git a/tests/test_image.py b/tests/test_image.py index 12c2ff5..5ca1862 100644 --- a/tests/test_image.py +++ b/tests/test_image.py @@ -65,23 +65,18 @@ def test_server_xml_defaults(docker_cli, image): context = xml.find('.//Context') assert connector.get('port') == '8090' - assert connector.get('maxThreads') == '48' + assert connector.get('maxThreads') == '100' assert connector.get('minSpareThreads') == '10' assert connector.get('connectionTimeout') == '20000' assert connector.get('enableLookups') == 'false' - assert connector.get('protocol') == 'org.apache.coyote.http11.Http11NioProtocol' - assert connector.get('redirectPort') == '8443' + assert connector.get('protocol') == 'HTTP/1.1' assert connector.get('acceptCount') == '10' - assert connector.get('debug') == '0' - assert connector.get('URIEncoding') == 'UTF-8' assert connector.get('secure') == 'false' assert connector.get('scheme') == 'http' assert connector.get('proxyName') == '' assert connector.get('proxyPort') == '' assert connector.get('maxHttpHeaderSize') == '8192' - assert context.get('path') == '' - def test_server_xml_catalina_fallback(docker_cli, image): environment = { 'CATALINA_CONNECTOR_PROXYNAME': 'PROXYNAME', @@ -113,10 +108,7 @@ def test_server_xml_params(docker_cli, image): 'ATL_TOMCAT_CONNECTIONTIMEOUT': '20001', 'ATL_TOMCAT_ENABLELOOKUPS': 'true', 'ATL_TOMCAT_PROTOCOL': 'HTTP/2', - 'ATL_TOMCAT_REDIRECTPORT': '8444', 'ATL_TOMCAT_ACCEPTCOUNT': '11', - 'ATL_TOMCAT_DEBUG': '1', - 'ATL_TOMCAT_URIENCODING':'ISO-8859-1', 'ATL_TOMCAT_SECURE': 'true', 'ATL_TOMCAT_SCHEME': 'https', 'ATL_PROXY_NAME': 'conf.atlassian.com', @@ -139,10 +131,7 @@ def test_server_xml_params(docker_cli, image): assert connector.get('connectionTimeout') == environment.get('ATL_TOMCAT_CONNECTIONTIMEOUT') assert connector.get('enableLookups') == environment.get('ATL_TOMCAT_ENABLELOOKUPS') assert connector.get('protocol') == environment.get('ATL_TOMCAT_PROTOCOL') - assert connector.get('redirectPort') == environment.get('ATL_TOMCAT_REDIRECTPORT') assert connector.get('acceptCount') == environment.get('ATL_TOMCAT_ACCEPTCOUNT') - assert connector.get('debug') == environment.get('ATL_TOMCAT_DEBUG') - assert connector.get('URIEncoding') == environment.get('ATL_TOMCAT_URIENCODING') assert connector.get('secure') == environment.get('ATL_TOMCAT_SECURE') assert connector.get('scheme') == environment.get('ATL_TOMCAT_SCHEME') assert connector.get('proxyName') == environment.get('ATL_PROXY_NAME')