DCD-1525: Test url updated

This commit is contained in:
Jun
2022-05-11 11:45:23 +10:00
parent 6d816bad7c
commit bcd58c7bc7
8 changed files with 43 additions and 43 deletions

View File

@@ -25,17 +25,17 @@ def test_version_file_is_latest(host):
assert verfile.exists
upstream_fd = urllib.request.urlopen(
"https://marketplace.atlassian.com/rest/2/applications/bitbucket/versions/latest")
"https://marketplace.atlassian.com/rest/2/products/key/bitbucket/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
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")
"https://marketplace.atlassian.com/rest/2/products/key/bitbucket/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
installer = host.file('/media/atl/downloads/bitbucket.' + upstream + '-x64.bin')
assert installer.exists
@@ -43,9 +43,9 @@ def test_latest_is_downloaded(host):
def test_completed_lockfile(host):
upstream_fd = urllib.request.urlopen(
"https://marketplace.atlassian.com/rest/2/applications/bitbucket/versions/latest")
"https://marketplace.atlassian.com/rest/2/products/key/bitbucket/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
lockfile = host.file('/media/atl/downloads/bitbucket.' + upstream + '-x64.bin_completed')
assert lockfile.exists

View File

@@ -24,25 +24,25 @@ def test_version_file_is_latest(host):
verfile = host.file('/media/atl/confluence/shared-home/confluence.version')
assert verfile.exists
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/confluence/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/confluence/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
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/confluence/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/confluence/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
installer = host.file('/media/atl/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_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/confluence/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
lockfile = host.file('/media/atl/downloads/confluence.'+upstream+'-x64.bin_completed')
assert lockfile.exists

View File

@@ -25,17 +25,17 @@ def test_version_file_is_latest(host):
assert verfile.exists
upstream_fd = urllib.request.urlopen(
"https://marketplace.atlassian.com/rest/2/applications/crowd/versions/latest")
"https://marketplace.atlassian.com/rest/2/products/key/crowd/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
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/crowd/versions/latest")
"https://marketplace.atlassian.com/rest/2/products/key/crowd/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
installer = host.file('/media/atl/downloads/crowd.' + upstream + '.tar.gz')
assert installer.exists
@@ -43,9 +43,9 @@ def test_latest_is_downloaded(host):
def test_completed_lockfile(host):
upstream_fd = urllib.request.urlopen(
"https://marketplace.atlassian.com/rest/2/applications/crowd/versions/latest")
"https://marketplace.atlassian.com/rest/2/products/key/crowd/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
lockfile = host.file('/media/atl/downloads/crowd.' + upstream + '.tar.gz_completed')
assert lockfile.exists

View File

@@ -12,25 +12,25 @@ def test_version_file_is_latest(host):
verfile = host.file('/media/atl/jira/shared/jira-core.version')
assert verfile.exists
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
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/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
installer = host.file('/media/atl/downloads/jira-core.'+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/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
lockfile = host.file('/media/atl/downloads/jira-core.'+upstream+'-x64.bin_completed')
assert lockfile.exists

View File

@@ -24,25 +24,25 @@ def test_version_file_is_latest(host):
verfile = host.file('/media/atl/jira/shared/jira-software.version')
assert verfile.exists
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
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/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
installer = host.file('/media/atl/downloads/jira-software.'+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/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
lockfile = host.file('/media/atl/downloads/jira-software.'+upstream+'-x64.bin_completed')
assert lockfile.exists

View File

@@ -12,25 +12,25 @@ def test_version_file_is_latest(host):
verfile = host.file('/media/atl/jira/shared/jira-core.version')
assert verfile.exists
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
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/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
installer = host.file('/media/atl/downloads/jira-core.'+upstream+'.tar.gz')
assert installer.exists
assert installer.user == 'root'
def test_completed_lockfile(host):
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
lockfile = host.file('/media/atl/downloads/jira-core.'+upstream+'.tar.gz_completed')
assert lockfile.exists

View File

@@ -12,25 +12,25 @@ def test_version_file_is_latest(host):
verfile = host.file('/media/atl/jira/shared/jira-core.version')
assert verfile.exists
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
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/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
installer = host.file('/media/atl/downloads/jira-core.'+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/jira/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']
upstream = upstream_json['_embedded']['versions'][0]['name']
lockfile = host.file('/media/atl/downloads/jira-core.'+upstream+'-x64.bin_completed')
assert lockfile.exists