ITOPSENG-101 fixed version in version_from_file and added better obr unpacking

This commit is contained in:
Brett Meehan
2019-11-15 12:15:32 +11:00
parent aea07909b0
commit a0080b5b07
2 changed files with 11 additions and 5 deletions

View File

@@ -14,12 +14,12 @@ def test_version_is_correct(host):
assert verfile.content.decode("UTF-8").strip() == "7.13.1"
def test_is_downloaded(host):
installer = host.file('/media/atl/downloads/jira-core.7.13.1-x64.bin')
installer = host.file('/media/atl/downloads/jira-core.7.9.0-x64.bin')
assert installer.exists
assert installer.user == 'root'
def test_completed_lockfile(host):
lockfile = host.file('/media/atl/downloads/jira-core.7.13.1-x64.bin_completed')
lockfile = host.file('/media/atl/downloads/jira-core.7.9.0-x64.bin_completed')
assert lockfile.exists
assert lockfile.user == 'root'

View File

@@ -163,10 +163,16 @@
src: "{{ atl_obr_download }}"
dest: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins"
creates: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins/jira-servicedesk-application-{{ atl_jsd_build_info.json.name }}.jar"
extra_opts:
- -j
- -n
list_files: no
exclude:
- M*
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
mode: 0750
ignore_errors: yes
- name: Move JSD dependency jars into the installed-plugins dir
shell:
cmd: "mv {{ atl_product_version_cache_dir }}/plugins/installed-plugins/dependencies/*.jar {{ atl_product_version_cache_dir }}/plugins/installed-plugins"
creates: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins/servicedesk-core-ui-plugin-{{ atl_jsd_build_info.json.name }}-REL-0022.jar"