mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
Merged in DCD-1374-context-path-missing-in-confluence.cfg.xml (pull request #108)
add context-path to confluence.cfg.xml Approved-by: Nasser Ghazali-Beiklar Approved-by: Efim Pyshnohraiev
This commit is contained in:
commit
1ca6ff3499
@ -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>
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user