2017-08-29 01:03:10 +02:00
|
|
|
---
|
|
|
|
- name: ensure testing folder exists
|
|
|
|
win_file:
|
|
|
|
path: '{{test_win_package_path}}'
|
|
|
|
state: directory
|
2016-09-06 08:09:32 +02:00
|
|
|
|
2017-08-29 01:03:10 +02:00
|
|
|
- name: download msi files from S3 bucket
|
2016-09-06 08:09:32 +02:00
|
|
|
win_get_url:
|
2017-08-29 01:03:10 +02:00
|
|
|
url: '{{item.url}}'
|
|
|
|
dest: '{{test_win_package_path}}\{{item.name}}'
|
|
|
|
with_items:
|
|
|
|
- { url: '{{test_win_package_good_url}}', name: 'good.msi' }
|
|
|
|
- { url: '{{test_win_package_reboot_url}}', name: 'reboot.msi' }
|
|
|
|
- { url: '{{test_win_package_bad_url}}', name: 'bad.msi' }
|
|
|
|
# - { url: '{{test_win_package_exe_url}}', name: '7z.exe' }
|
|
|
|
|
|
|
|
- name: make sure all test msi's are uninstalled before test
|
2016-09-06 08:09:32 +02:00
|
|
|
win_package:
|
2017-08-29 01:03:10 +02:00
|
|
|
product_id: '{{item.id}}'
|
|
|
|
arguments: '{{item.args|default(omit)}}'
|
2016-09-06 08:09:32 +02:00
|
|
|
state: absent
|
2017-08-29 01:03:10 +02:00
|
|
|
with_items:
|
|
|
|
- { id: '{{test_win_package_good_id}}' }
|
|
|
|
- { id: '{{test_win_package_reboot_id}}' }
|
|
|
|
# - { id: '{{test_win_package_exe_id}}', args: '/S' }
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: run tests for expected failures
|
|
|
|
include_tasks: failure_tests.yml
|
|
|
|
|
|
|
|
- name: run tests for local and URL msi files
|
|
|
|
include_tasks: msi_tests.yml
|
|
|
|
|
|
|
|
# doesn't work 100% on AWS hosts, disabling for now until we get a better exe example
|
|
|
|
# - name: run tests for local and URL exe files
|
|
|
|
# include_tasks: exe_tests.yml
|
|
|
|
|
|
|
|
# these tests can be run manually by defining test_win_package_network_path
|
|
|
|
- name: run tests for network msi files (manual)
|
|
|
|
include_tasks: network_tests.yml
|
|
|
|
when: test_win_package_network_path is defined
|
|
|
|
|
|
|
|
always:
|
|
|
|
- name: make sure all test msi's are uninstalled after test
|
|
|
|
win_package:
|
|
|
|
product_id: '{{item.id}}'
|
|
|
|
arguments: '{{item.args|default(omit)}}'
|
|
|
|
state: absent
|
|
|
|
with_items:
|
|
|
|
- { id: '{{test_win_package_good_id}}' }
|
|
|
|
- { id: '{{test_win_package_reboot_id}}' }
|
|
|
|
# - { id: '{{test_win_package_exe_id}}', args: '/S' }
|