Files
dc-deployments-automation/roles/jira_download/molecule/resources/tests/test_common.py

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