add context-path to confluence.cfg.xml

This commit is contained in:
wyasvoin 2021-10-11 15:07:37 +11:00
parent cafb484982
commit 3d9a66480c
2 changed files with 14 additions and 0 deletions

View File

@ -72,5 +72,9 @@
<property name="atlassian.license.message">{{ atl_license_key }}</property>
{% endif %}
{% if atl_tomcat_contextpath is defined and atl_tomcat_contextpath != '' %}
<property name="confluence.webapp.context.path">/{{ atl_tomcat_contextpath }}</property>
{% endif %}
</properties>
</confluence-configuration>

View File

@ -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.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):
environment = {