Skip to content
Snippets Groups Projects
Commit f2a1d50b authored by Thomas Woerner's avatar Thomas Woerner
Browse files

test_pwpolicy: minlength parameter can be reset with empty string now

The reset of the minlength parameter failed with an internal error so
far. This has been fixed in IPA and therefore requires to fix the test
in ansible-freeipa also.

Related: https://pagure.io/freeipa/issue/9297
parent 1930d8c8
No related branches found
No related tags found
No related merge requests found
...@@ -176,21 +176,10 @@ ...@@ -176,21 +176,10 @@
minlength: "" minlength: ""
register: result register: result
failed_when: failed_when:
result.changed or
(result.failed and not (result.failed and not
("an internal error has occurred" in result.msg or ("an internal error has occurred" in result.msg or
"int() argument must be" in result.msg)) "int() argument must be" in result.msg))
when: ipa_version is version("4.9", ">=") or (not result.failed and not result.changed)
- name: Ensure minlength is not cleared due to FreeIPA issue
ipapwpolicy:
ipaadmin_password: SomeADMINpassword
ipaapi_context: "{{ ipa_context | default(omit) }}"
name: ops
minlength: ""
register: result
failed_when: not result.changed or result.failed
when: ipa_version is version("4.7", "<")
- name: Execute tests if ipa_version >= 4.9.0 - name: Execute tests if ipa_version >= 4.9.0
when: ipa_version is version("4.9", ">=") when: ipa_version is version("4.9", ">=")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment