mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-27 05:43:09 +00:00
[PR #10543/7298f25f backport][stable-11] Fix no longer valid constructs in tests (#10547)
Fix no longer valid constructs in tests (#10543)
Fix no longer valid constructs in tests.
(cherry picked from commit 7298f25fe0)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -186,7 +186,7 @@
|
||||
- name: ensure configcheck fails task with when run without mpm modules
|
||||
assert:
|
||||
that:
|
||||
- "{{ item.failed }}"
|
||||
- item is failed
|
||||
with_items: "{{ remove_with_configcheck.results }}"
|
||||
|
||||
- name: try to disable all mpm modules without configcheck
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
|
||||
- name: Test that file exists
|
||||
assert:
|
||||
that: "{{ item.stat.exists }}"
|
||||
that:
|
||||
- item.stat.exists
|
||||
quiet: true
|
||||
loop: "{{ result_files_stat.results }}"
|
||||
loop_control:
|
||||
|
||||
@@ -22,4 +22,5 @@
|
||||
that:
|
||||
- output is not failed
|
||||
- output.results | length >= 1
|
||||
- "{{ 'displayName' in output.results.0.attrs }}"
|
||||
- >-
|
||||
'displayName' in output.results.0.attrs
|
||||
|
||||
Reference in New Issue
Block a user