mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 17:03:06 -06:00
DCD-224: Add fetching of the installer.
This commit is contained in:
@@ -12,7 +12,7 @@ def test_version_downloaded(host):
|
||||
assert verfile.exists
|
||||
|
||||
|
||||
def test_version_is_latest(host):
|
||||
def test_version_file_is_latest(host):
|
||||
verfile = host.file('/media/atl/jira/shared/jira-software.version')
|
||||
assert verfile.exists
|
||||
|
||||
@@ -20,3 +20,12 @@ def test_version_is_latest(host):
|
||||
upstream = upstream_fd.read()
|
||||
|
||||
assert verfile.content.decode("UTF-8").strip() == upstream.decode("UTF-8").strip()
|
||||
|
||||
def test_latest_is_downloaded(host):
|
||||
upstream_fd = urllib.request.urlopen("https://s3.amazonaws.com/atlassian-software/releases/jira-software/latest")
|
||||
upstream = upstream_fd.read().decode("UTF-8").strip()
|
||||
|
||||
installer = host.file('/media/atl/jira/shared/jira-software.'+upstream+'.bin')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
assert installer.mode == 0o0755
|
||||
|
||||
Reference in New Issue
Block a user