mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPS-2158 Changed run_user test to be more specific
This commit is contained in:
@@ -17,21 +17,23 @@ def test_symlink_created(host):
|
|||||||
assert target.is_symlink
|
assert target.is_symlink
|
||||||
|
|
||||||
def test_unpacked(host):
|
def test_unpacked(host):
|
||||||
verfile = host.file('/opt/atlassian/crowd/current/bin/catalina.sh')
|
verfile = host.file('/opt/atlassian/crowd/current/bin/start-crowd.sh')
|
||||||
assert verfile.exists
|
assert verfile.exists
|
||||||
|
|
||||||
def test_version_file_is_latest(host):
|
def test_version_file_is_latest(host):
|
||||||
verfile = host.file('/media/atl/crowd/shared/crowd.version')
|
verfile = host.file('/media/atl/crowd/shared/crowd.version')
|
||||||
assert verfile.exists
|
assert verfile.exists
|
||||||
|
|
||||||
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/crowd/versions/latest")
|
upstream_fd = urllib.request.urlopen(
|
||||||
|
"https://marketplace.atlassian.com/rest/2/applications/crowd/versions/latest")
|
||||||
upstream_json = json.load(upstream_fd)
|
upstream_json = json.load(upstream_fd)
|
||||||
upstream = upstream_json['version']
|
upstream = upstream_json['version']
|
||||||
|
|
||||||
assert verfile.content.decode("UTF-8").strip() == upstream.strip()
|
assert verfile.content.decode("UTF-8").strip() == upstream.strip()
|
||||||
|
|
||||||
def test_latest_is_downloaded(host):
|
def test_latest_is_downloaded(host):
|
||||||
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/crowd/versions/latest")
|
upstream_fd = urllib.request.urlopen(
|
||||||
|
"https://marketplace.atlassian.com/rest/2/applications/crowd/versions/latest")
|
||||||
upstream_json = json.load(upstream_fd)
|
upstream_json = json.load(upstream_fd)
|
||||||
upstream = upstream_json['version']
|
upstream = upstream_json['version']
|
||||||
|
|
||||||
@@ -40,7 +42,8 @@ def test_latest_is_downloaded(host):
|
|||||||
assert installer.user == 'root'
|
assert installer.user == 'root'
|
||||||
|
|
||||||
def test_completed_lockfile(host):
|
def test_completed_lockfile(host):
|
||||||
upstream_fd = urllib.request.urlopen("https://marketplace.atlassian.com/rest/2/applications/crowd/versions/latest")
|
upstream_fd = urllib.request.urlopen(
|
||||||
|
"https://marketplace.atlassian.com/rest/2/applications/crowd/versions/latest")
|
||||||
upstream_json = json.load(upstream_fd)
|
upstream_json = json.load(upstream_fd)
|
||||||
upstream = upstream_json['version']
|
upstream = upstream_json['version']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user