mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
Refactored unit tests
This commit is contained in:
parent
05930f440b
commit
92aaea5c6d
@ -21,8 +21,6 @@
|
|||||||
proxyPort="{{ atl_proxy_port | default(catalina_connector_proxyport) | default('') }}"
|
proxyPort="{{ atl_proxy_port | default(catalina_connector_proxyport) | default('') }}"
|
||||||
maxHttpHeaderSize="{{ atl_tomcat_maxhttpheadersize | default('8192') }}" />
|
maxHttpHeaderSize="{{ atl_tomcat_maxhttpheadersize | default('8192') }}" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Engine name="Standalone"
|
<Engine name="Standalone"
|
||||||
defaultHost="localhost"
|
defaultHost="localhost"
|
||||||
debug="0">
|
debug="0">
|
||||||
|
@ -175,11 +175,10 @@ def test_server_xml_access_log(docker_cli, image):
|
|||||||
value = xml.find('.//Context/Valve[@className="org.apache.catalina.valves.RemoteIpValve"]')
|
value = xml.find('.//Context/Valve[@className="org.apache.catalina.valves.RemoteIpValve"]')
|
||||||
assert value.get('internalProxies') == environment.get('ATL_TOMCAT_PROXY_INTERNAL_IPS')
|
assert value.get('internalProxies') == environment.get('ATL_TOMCAT_PROXY_INTERNAL_IPS')
|
||||||
|
|
||||||
def test_server_xml_access_log_default_ver_lt_7_11(docker_cli, image):
|
def test_server_xml_access_log_disabled(docker_cli, image):
|
||||||
environment = {
|
environment = {
|
||||||
#'ATL_TOMCAT_ACCESS_LOG': Not defined,
|
'ATL_TOMCAT_ACCESS_LOG': 'false',
|
||||||
'ATL_TOMCAT_PROXY_INTERNAL_IPS': '192.168.1.1',
|
'ATL_TOMCAT_PROXY_INTERNAL_IPS': '192.168.1.1',
|
||||||
'CONFLUENCE_VERSION': "7.10.0",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
container = run_image(docker_cli, image, environment=environment)
|
container = run_image(docker_cli, image, environment=environment)
|
||||||
@ -189,10 +188,11 @@ def test_server_xml_access_log_default_ver_lt_7_11(docker_cli, image):
|
|||||||
value = xml.find('.//Context/Valve[@className="org.apache.catalina.valves.RemoteIpValve"]')
|
value = xml.find('.//Context/Valve[@className="org.apache.catalina.valves.RemoteIpValve"]')
|
||||||
assert value is None
|
assert value is None
|
||||||
|
|
||||||
def test_server_xml_access_log_disabled(docker_cli, image):
|
def test_server_xml_access_log_default_ver_lt_7_11(docker_cli, image):
|
||||||
environment = {
|
environment = {
|
||||||
'ATL_TOMCAT_ACCESS_LOG': 'false',
|
#'ATL_TOMCAT_ACCESS_LOG': Not defined,
|
||||||
'ATL_TOMCAT_PROXY_INTERNAL_IPS': '192.168.1.1',
|
'ATL_TOMCAT_PROXY_INTERNAL_IPS': '192.168.1.1',
|
||||||
|
'CONFLUENCE_VERSION': "7.10.0",
|
||||||
}
|
}
|
||||||
|
|
||||||
container = run_image(docker_cli, image, environment=environment)
|
container = run_image(docker_cli, image, environment=environment)
|
||||||
|
Loading…
Reference in New Issue
Block a user