mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-434: Add molecule test for bitbucket config.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
|
||||
import testinfra.utils.ansible_runner
|
||||
|
||||
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
||||
|
||||
|
||||
def test_config_file(host):
|
||||
f = host.file('/media/atl/bitbucket/shared/bitbucket.properties')
|
||||
assert f.exists
|
||||
assert f.user == 'bitbucket'
|
||||
|
||||
assert f.contains("jdbc.driver=org.postgresql.Driver")
|
||||
assert f.contains("jdbc.user=bb_db_user")
|
||||
assert f.contains("jdbc.password=molecule_password")
|
||||
Reference in New Issue
Block a user