mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 17:03:06 -06:00
DCD-224: Refactor installer role to work around various quirks.
This commit is contained in:
@@ -23,24 +23,17 @@ def test_version_is_correct(host):
|
||||
assert verfile.content.decode("UTF-8").strip() == sd
|
||||
|
||||
def test_is_downloaded(host):
|
||||
installer = host.file('/opt/atlassian/tmp/jira-software.'+jira+'.tar.gz')
|
||||
installer = host.file('/opt/atlassian/tmp/servicedesk.'+sd+'.bin')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
|
||||
def test_is_unpacked(host):
|
||||
installer = host.file('/opt/atlassian/jira-servicedesk/'+jira)
|
||||
installer = host.file('/opt/atlassian/jira-servicedesk/'+sd)
|
||||
assert installer.exists
|
||||
assert installer.is_directory
|
||||
assert installer.user == 'jira'
|
||||
assert installer.mode == 0o0755
|
||||
|
||||
def test_sd_is_downloaded(host):
|
||||
installer = host.file('/opt/atlassian/tmp/jira-servicedesk.'+sd+'.obr')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
|
||||
def test_is_unpacked(host):
|
||||
installer = host.file('/media/atl/jira/shared/plugins/installed-plugins/jira-servicedesk-application-'+sd+'.jar')
|
||||
def test_plugin_is_present(host):
|
||||
installer = host.file('/opt/atlassian/jira-servicedesk/current/atlassian-jira/WEB-INF/application-installation/jira-servicedesk-application/jira-servicedesk-application-'+sd+'.jar')
|
||||
assert installer.exists
|
||||
assert installer.user == 'jira'
|
||||
assert installer.mode == 0o0750
|
||||
|
||||
Reference in New Issue
Block a user