mirror of
https://github.com/zebrajr/ansible.git
synced 2025-12-06 12:19:53 +01:00
Make test for skipping agree with the way current output formats a skip
This commit is contained in:
parent
bff88271ee
commit
1545c73d27
|
|
@ -276,8 +276,9 @@
|
|||
- name: assert the task was skipped
|
||||
assert:
|
||||
that:
|
||||
- "'skipped' in result"
|
||||
- result.results.skipped
|
||||
- "result.results|length == 1"
|
||||
- "'skipped' in result.results[0]"
|
||||
- "result.results[0].skipped == True"
|
||||
|
||||
- name: test a with_items loop skipping a single item
|
||||
debug: var=item
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user