mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-224: Update servicedesk test to check bundle mappings.
This commit is contained in:
19
roles/product_download/molecule/servicedesk/playbook.yml
Normal file
19
roles/product_download/molecule/servicedesk/playbook.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
- name: Converge
|
||||||
|
hosts: all
|
||||||
|
vars:
|
||||||
|
atl_product_bundle: servicedesk
|
||||||
|
bundle_map:
|
||||||
|
all: software
|
||||||
|
servicedesk: software
|
||||||
|
core: core
|
||||||
|
software: software
|
||||||
|
|
||||||
|
atl_product_edition: "jira-{{ bundle_map[atl_product_bundle] }}"
|
||||||
|
atl_product_family: "jira"
|
||||||
|
atl_product_user: "jira"
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: linux_common
|
||||||
|
- role: product_common
|
||||||
|
- role: product_download
|
||||||
@@ -8,18 +8,18 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||||||
|
|
||||||
|
|
||||||
def test_version_is_correct(host):
|
def test_version_is_correct(host):
|
||||||
verfile = host.file('/media/atl/jira/shared/servicedesk.version')
|
verfile = host.file('/media/atl/jira/shared/jira-software.version')
|
||||||
assert verfile.exists
|
assert verfile.exists
|
||||||
|
|
||||||
assert verfile.content.decode("UTF-8").strip() == "3.16.3"
|
assert verfile.content.decode("UTF-8").strip() == "8.1.0"
|
||||||
|
|
||||||
def test_is_downloaded(host):
|
def test_is_downloaded(host):
|
||||||
installer = host.file('/opt/atlassian/tmp/servicedesk.3.16.3.tar.gz')
|
installer = host.file('/opt/atlassian/tmp/jira-software.8.1.0.tar.gz')
|
||||||
assert installer.exists
|
assert installer.exists
|
||||||
assert installer.user == 'root'
|
assert installer.user == 'root'
|
||||||
|
|
||||||
def test_is_unpacked(host):
|
def test_is_unpacked(host):
|
||||||
installer = host.file('/opt/atlassian/servicedesk/3.16.3')
|
installer = host.file('/opt/atlassian/jira-software/8.1.0')
|
||||||
assert installer.exists
|
assert installer.exists
|
||||||
assert installer.is_directory
|
assert installer.is_directory
|
||||||
assert installer.user == 'jira'
|
assert installer.user == 'jira'
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Converge
|
|
||||||
hosts: all
|
|
||||||
vars:
|
|
||||||
atl_product_family: "jira"
|
|
||||||
atl_product_edition: "servicedesk"
|
|
||||||
atl_product_user: "jira"
|
|
||||||
atl_product_version: "3.16.3"
|
|
||||||
roles:
|
|
||||||
- role: linux_common
|
|
||||||
- role: product_common
|
|
||||||
- role: product_download
|
|
||||||
Reference in New Issue
Block a user