SCALE-33 Add unit test first

This commit is contained in:
Kenny MacLeod 2020-09-06 20:23:42 +01:00
parent cd5284a185
commit cdb5bb2d76
No known key found for this signature in database
GPG Key ID: 963A7C10FA8A2962

View File

@ -296,6 +296,17 @@ def test_confluence_xml_cluster_tcp(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.peers"]')[0].text == "1.1.1.1,99.99.99.99"
def test_confluence_xml_license(docker_cli, image, run_user):
environment = {
'ATL_LICENSE_KEY': 'mylicense',
}
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="atlassian.license.message"]')[0].text == "mylicense"
def test_java_in_run_user_path(docker_cli, image):
RUN_USER = 'confluence'
container = run_image(docker_cli, image)