mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
18 lines
481 B
Python
18 lines
481 B
Python
import os
|
|
import urllib.request
|
|
|
|
import testinfra.utils.ansible_runner
|
|
|
|
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
|
|
|
|
|
|
def test_version_downloaded(host):
|
|
verfile = host.file('/media/atl/jira/shared/jira-software.version')
|
|
assert verfile.exists
|
|
|
|
def test_symlink_created(host):
|
|
target = host.file('/opt/atlassian/jira-software/current')
|
|
assert target.exists
|
|
assert target.is_symlink
|