mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
add context-path to confluence.cfg.xml
This commit is contained in:
parent
cafb484982
commit
3d9a66480c
@ -72,5 +72,9 @@
|
|||||||
<property name="atlassian.license.message">{{ atl_license_key }}</property>
|
<property name="atlassian.license.message">{{ atl_license_key }}</property>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if atl_tomcat_contextpath is defined and atl_tomcat_contextpath != '' %}
|
||||||
|
<property name="confluence.webapp.context.path">/{{ atl_tomcat_contextpath }}</property>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
</confluence-configuration>
|
</confluence-configuration>
|
||||||
|
@ -304,6 +304,16 @@ def test_confluence_xml_cluster_aws(docker_cli, image, run_user):
|
|||||||
assert xml.findall('.//property[@name="confluence.cluster.name"]')[0].text == "atl_cluster_name"
|
assert xml.findall('.//property[@name="confluence.cluster.name"]')[0].text == "atl_cluster_name"
|
||||||
assert xml.findall('.//property[@name="confluence.cluster.ttl"]')[0].text == "atl_cluster_ttl"
|
assert xml.findall('.//property[@name="confluence.cluster.ttl"]')[0].text == "atl_cluster_ttl"
|
||||||
|
|
||||||
|
def test_confluence_xml_context_path(docker_cli, image, run_user):
|
||||||
|
environment = {
|
||||||
|
'ATL_TOMCAT_CONTEXTPATH': 'myconf',
|
||||||
|
}
|
||||||
|
container = run_image(docker_cli, image, user=run_user, environment=environment)
|
||||||
|
_jvm = wait_for_proc(container, get_bootstrap_proc(container))
|
||||||
|
|
||||||
|
xml = parse_xml(container, f'{get_app_home(container)}/confluence.cfg.xml')
|
||||||
|
|
||||||
|
assert xml.findall('.//property[@name="confluence.webapp.context.path"]')[0].text == "/myconf"
|
||||||
|
|
||||||
def test_confluence_xml_cluster_multicast(docker_cli, image, run_user):
|
def test_confluence_xml_cluster_multicast(docker_cli, image, run_user):
|
||||||
environment = {
|
environment = {
|
||||||
|
Loading…
Reference in New Issue
Block a user