mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 04:14:42 +00:00
tests: Remove ignore_errors from pwpolicy tests.
Instead of ignoring errors it is better that we specific evaluate errors provided by negative tests. This patche removes the an occurrence of 'ignore_errors: true' in ansible-freeipa tests.
This commit is contained in:
@@ -81,8 +81,7 @@
|
|||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
state: absent
|
state: absent
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: True
|
failed_when: not result.failed or "'global_policy' can not be made absent." not in result.msg
|
||||||
failed_when: (result is defined and result) or result.failed
|
|
||||||
|
|
||||||
- name: Ensure absence of pwpolicies for group ops
|
- name: Ensure absence of pwpolicies for group ops
|
||||||
ipapwpolicy:
|
ipapwpolicy:
|
||||||
|
|||||||
Reference in New Issue
Block a user