ITOPS-2158 testing

This commit is contained in:
Glenn Stewart
2019-11-01 13:51:16 +11:00
parent e55593bf6c
commit ae67349527

View File

@@ -42,5 +42,10 @@ def test_latest_is_downloaded(host):
assert installer.user == 'root'
def test_completed_lockfile(host):
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']
verfile = host.file('/media/atl/bitbucket/shared/downloads/bitbucket.' + upstream + '-x64.bin_completed')
assert verfile.exists