2017-09-20 00:28:03 +00:00
|
|
|
---
|
|
|
|
- name: remove test tasks before test
|
|
|
|
include_tasks: clean.yml
|
2017-03-15 14:11:24 +00:00
|
|
|
|
2017-09-20 00:28:03 +00:00
|
|
|
- block:
|
|
|
|
# old tests, remove once new code is considered stable
|
2017-03-24 02:42:12 +00:00
|
|
|
- name: Test in normal mode
|
2018-01-07 04:05:15 +00:00
|
|
|
import_tasks: tests.yml
|
2017-03-24 02:42:12 +00:00
|
|
|
vars:
|
|
|
|
in_check_mode: no
|
2017-03-15 14:11:24 +00:00
|
|
|
|
2017-03-24 02:42:12 +00:00
|
|
|
- name: Test in check-mode
|
2018-01-07 04:05:15 +00:00
|
|
|
import_tasks: tests.yml
|
2017-03-24 02:42:12 +00:00
|
|
|
vars:
|
|
|
|
in_check_mode: yes
|
|
|
|
check_mode: yes
|
2017-09-20 00:28:03 +00:00
|
|
|
|
|
|
|
- include_tasks: clean.yml
|
|
|
|
|
|
|
|
- name: Test failure scenarios
|
2018-01-07 04:05:15 +00:00
|
|
|
include_tasks: failures.yml
|
2017-09-20 00:28:03 +00:00
|
|
|
|
|
|
|
- name: Test normal scenarios
|
|
|
|
include_tasks: new_tests.yml
|
|
|
|
|
|
|
|
- include_tasks: clean.yml
|
|
|
|
|
|
|
|
- name: Test principals
|
|
|
|
include_tasks: principals.yml
|
|
|
|
|
|
|
|
- include_tasks: clean.yml
|
|
|
|
|
|
|
|
- name: Test triggers
|
|
|
|
include_tasks: triggers.yml
|
|
|
|
|
|
|
|
always:
|
|
|
|
- name: remove test tasks after test
|
|
|
|
include_tasks: clean.yml
|