mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
Test for special character escaping
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import os
|
||||
import pytest
|
||||
|
||||
import testinfra.utils.ansible_runner
|
||||
|
||||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||
|
||||
def test_confluence_config_file_for_escaped_ampersand_chars(host):
|
||||
f = host.file('/var/atlassian/application-data/confluence/confluence.cfg.xml')
|
||||
assert f.exists
|
||||
assert f.contains('<property name="hibernate.connection.password">passwords_with_ampersands_&_should_be_escaped</property>')
|
||||
Reference in New Issue
Block a user