mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
working on molecule tests for the alternate obr stuff
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,5 +5,6 @@ __pycache__
|
||||
*.pyc
|
||||
/.venv
|
||||
\#*\#
|
||||
.envrc
|
||||
.idea
|
||||
.vscode
|
||||
|
||||
@@ -14,28 +14,12 @@
|
||||
# Although marketplace (mpac) is used in this example, this could potentially be in a non mpac url.
|
||||
# In this case it would not be possible to query atl_jsd_build_info to source the atl_jsd_build. One is therefore provided.
|
||||
atl_install_jsd_as_obr: true
|
||||
atl_source_obr_from_marketplace: false
|
||||
atl_jsd_build: "4.14.0"
|
||||
atl_jsd_build: "4.18.0"
|
||||
atl_obr_download_url: "https://marketplace.atlassian.com/download/apps/1213632/version/1040180000"
|
||||
# When using a tarball the following are also required:
|
||||
atl_download_format: "tarball"
|
||||
atl_use_system_jdk: true
|
||||
|
||||
atl_systemd_service_name: "jira.service"
|
||||
atl_jdbc_encoding: 'UNICODE'
|
||||
atl_jdbc_collation: 'C'
|
||||
atl_jdbc_ctype: 'C'
|
||||
atl_jdbc_template: 'template0'
|
||||
pre_tasks:
|
||||
- name: Create cache dir
|
||||
file:
|
||||
path: '/media/atl/jira/shared/'
|
||||
state: directory
|
||||
- name: Seed version
|
||||
copy:
|
||||
dest: '/media/atl/jira/shared/jira-software.version'
|
||||
content: "8.14.0"
|
||||
force: false # For idempotency check
|
||||
roles:
|
||||
- role: linux_common
|
||||
- role: product_common
|
||||
|
||||
@@ -21,3 +21,5 @@ provisioner:
|
||||
group_vars: ../../../../group_vars/
|
||||
verifier:
|
||||
name: testinfra
|
||||
additional_files_or_dirs:
|
||||
- ../../resources/tests/test_*.py
|
||||
|
||||
@@ -32,12 +32,12 @@ def test_is_unpacked(host):
|
||||
assert installer.mode == 0o0755
|
||||
|
||||
def test_obr_is_downloaded(host):
|
||||
installer = host.file('/media/atl/downloads/jira-servicedesk-application-4.14.0.obr')
|
||||
installer = host.file('/media/atl/downloads/jira-servicedesk-application-4.18.0.obr')
|
||||
assert installer.exists
|
||||
assert installer.user == 'root'
|
||||
|
||||
def test_obr_completed_lockfile(host):
|
||||
lockfile = host.file('/media/atl/downloads/jira-servicedesk-application-4.14.0.obr_completed')
|
||||
lockfile = host.file('/media/atl/downloads/jira-servicedesk-application-4.18.0.obr_completed')
|
||||
assert lockfile.exists
|
||||
assert lockfile.user == 'root'
|
||||
|
||||
|
||||
@@ -109,6 +109,10 @@
|
||||
# Fetch obr if required
|
||||
- name: download_obr is true so fetch and do all the things
|
||||
block:
|
||||
- debug:
|
||||
var: atl_obr_download_url
|
||||
- debug:
|
||||
var: atl_obr_download
|
||||
|
||||
# Fetch obr and copy to temp
|
||||
- name: Fetch obr
|
||||
|
||||
Reference in New Issue
Block a user