KFP-83-Update-marketplace-links

This commit is contained in:
Kamil Smigielski
2022-12-23 13:32:05 +00:00
parent 28d5a8c78a
commit d2b077813a
13 changed files with 32 additions and 32 deletions

View File

@@ -24,14 +24,14 @@ def test_version_file_is_latest(host):
verfile = host.file('/media/atl/confluence/shared/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-admin.internal.atlassian.com/rest/2/applications/confluence/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/confluence/versions/latest")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/applications/confluence/versions/latest")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['version']

View File

@@ -24,14 +24,14 @@ 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/products/key/bitbucket/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/bitbucket/versions")
upstream_json = json.load(upstream_fd)
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/products/key/bitbucket/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/bitbucket/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']
@@ -40,7 +40,7 @@ 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/products/key/bitbucket/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/bitbucket/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']

View File

@@ -24,14 +24,14 @@ 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/products/key/confluence/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/confluence/versions")
upstream_json = json.load(upstream_fd)
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/products/key/confluence/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/confluence/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']
@@ -40,7 +40,7 @@ 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/products/key/confluence/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/confluence/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']

View File

@@ -24,14 +24,14 @@ def test_version_file_is_latest(host):
verfile = host.file('/media/atl/crowd/shared/crowd.version')
assert verfile.exists
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/crowd/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/crowd/versions")
upstream_json = json.load(upstream_fd)
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/products/key/crowd/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/crowd/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']
@@ -40,7 +40,7 @@ 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/products/key/crowd/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/crowd/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']

View File

@@ -12,14 +12,14 @@ 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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']
@@ -28,7 +28,7 @@ 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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']

View File

@@ -24,14 +24,14 @@ 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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']
@@ -40,7 +40,7 @@ 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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']

View File

@@ -12,14 +12,14 @@ 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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']
@@ -28,7 +28,7 @@ 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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']

View File

@@ -12,14 +12,14 @@ 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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']
@@ -28,7 +28,7 @@ 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/products/key/jira-software/versions")
upstream_fd = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-software/versions")
upstream_json = json.load(upstream_fd)
upstream = upstream_json['_embedded']['versions'][0]['name']

View File

@@ -8,7 +8,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def get_latest():
data = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/products/key/jira-servicedesk/versions/latest")
data = urllib.request.urlopen("https://marketplace-admin.internal.atlassian.com/rest/2/products/key/jira-servicedesk/versions/latest")
meta = json.loads(data.read().decode("UTF-8"))
servicedesk = meta['name']
jira = meta['compatibilities'][0]['hosting']['server']['max']['version']