mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
DCD-621: fixes installer tests - Test should assert for full file name for installer. Previously, tests were missing checking for -x64 installer suffix
This commit is contained in:
@@ -24,17 +24,19 @@ def test_version_file_is_latest(host):
|
||||
verfile = host.file('/media/atl/bitbucket/shared/bitbucket.version')
|
||||
assert verfile.exists
|
||||
|
||||
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/bitbucket/versions/latest")
|
||||
upstream_fd = urllib.request.urlopen(
|
||||
"https://marketplace.atlassian.com/rest/2/applications/bitbucket/versions/latest")
|
||||
upstream_json = json.load(upstream_fd)
|
||||
upstream = upstream_json['version']
|
||||
|
||||
assert verfile.content.decode("UTF-8").strip() == upstream.strip()
|
||||
|
||||
def test_latest_is_downloaded(host):
|
||||
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/bitbucket/versions/latest")
|
||||
upstream_fd = urllib.request.urlopen(
|
||||
"https://marketplace.atlassian.com/rest/2/applications/bitbucket/versions/latest")
|
||||
upstream_json = json.load(upstream_fd)
|
||||
upstream = upstream_json['version']
|
||||
|
||||
installer = host.file('/opt/atlassian/tmp/bitbucket.'+upstream+'.bin')
|
||||
installer = host.file('/opt/atlassian/tmp/bitbucket.' + upstream + '-x64.bin')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
|
||||
@@ -35,6 +35,6 @@ def test_latest_is_downloaded(host):
|
||||
upstream_json = json.load(upstream_fd)
|
||||
upstream = upstream_json['version']
|
||||
|
||||
installer = host.file('/opt/atlassian/tmp/confluence.'+upstream+'.bin')
|
||||
installer = host.file('/opt/atlassian/tmp/confluence.'+upstream+'-x64.bin')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
|
||||
@@ -23,6 +23,6 @@ def test_latest_is_downloaded(host):
|
||||
upstream_json = json.load(upstream_fd)
|
||||
upstream = upstream_json['version']
|
||||
|
||||
installer = host.file('/opt/atlassian/tmp/jira-core.'+upstream+'.bin')
|
||||
installer = host.file('/opt/atlassian/tmp/jira-core.'+upstream+'-x64.bin')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
|
||||
@@ -35,6 +35,6 @@ def test_latest_is_downloaded(host):
|
||||
upstream_json = json.load(upstream_fd)
|
||||
upstream = upstream_json['version']
|
||||
|
||||
installer = host.file('/opt/atlassian/tmp/jira-software.'+upstream+'.bin')
|
||||
installer = host.file('/opt/atlassian/tmp/jira-software.'+upstream+'-x64.bin')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
|
||||
@@ -23,6 +23,6 @@ def test_latest_is_downloaded(host):
|
||||
upstream_json = json.load(upstream_fd)
|
||||
upstream = upstream_json['version']
|
||||
|
||||
installer = host.file('/opt/atlassian/tmp/jira-core.'+upstream+'.bin')
|
||||
installer = host.file('/opt/atlassian/tmp/jira-core.'+upstream+'-x64.bin')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
|
||||
Reference in New Issue
Block a user