mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-224: Rename product_download to tgz_download in prep for an alternative installer.
This commit is contained in:
21
roles/tgz_download/molecule/resources/tests/test_common.py
Normal file
21
roles/tgz_download/molecule/resources/tests/test_common.py
Normal file
@@ -0,0 +1,21 @@
|
||||
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-core.version')
|
||||
assert verfile.exists
|
||||
|
||||
def test_symlink_created(host):
|
||||
target = host.file('/opt/atlassian/jira-core/current')
|
||||
assert target.exists
|
||||
assert target.is_symlink
|
||||
|
||||
def test_unpacked(host):
|
||||
verfile = host.file('/opt/atlassian/jira-core/current/bin/catalina.sh')
|
||||
assert verfile.exists
|
||||
Reference in New Issue
Block a user