ITOPS-2158 Remaining molecule unit tests

This commit is contained in:
Glenn Stewart
2019-11-01 14:52:57 +11:00
parent ae67349527
commit c10b312148
13 changed files with 84 additions and 3 deletions

View File

@@ -38,3 +38,12 @@ def test_latest_is_downloaded(host):
installer = host.file('/media/atl/confluence/shared-home/downloads/confluence.'+upstream+'-x64.bin')
assert installer.exists
assert installer.user == 'root'
def test_completed_lockfile(host):
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/confluence/versions/latest")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
lockfile = host.file('/media/atl/confluence/shared-home/downloads/confluence.'+upstream+'-x64.bin_completed')
assert lockfile.exists
assert lockfile.user == 'root'