Skip to content

Commit 7298f25

Browse files
authored
Fix no longer valid constructs in tests (#10543)
Fix no longer valid constructs in tests.
1 parent 3b551f9 commit 7298f25

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

tests/integration/targets/apache2_module/tasks/actualtest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
- name: ensure configcheck fails task with when run without mpm modules
187187
assert:
188188
that:
189-
- "{{ item.failed }}"
189+
- item is failed
190190
with_items: "{{ remove_with_configcheck.results }}"
191191

192192
- name: try to disable all mpm modules without configcheck

tests/integration/targets/decompress/tasks/dest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434

3535
- name: Test that file exists
3636
assert:
37-
that: "{{ item.stat.exists }}"
37+
that:
38+
- item.stat.exists
3839
quiet: true
3940
loop: "{{ result_files_stat.results }}"
4041
loop_control:

tests/integration/targets/ldap_search/tasks/tests/schema.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
that:
2323
- output is not failed
2424
- output.results | length >= 1
25-
- "{{ 'displayName' in output.results.0.attrs }}"
25+
- >-
26+
'displayName' in output.results.0.attrs

0 commit comments

Comments
 (0)