Skip to content

Commit

Permalink
Merge pull request freeipa#1180 from t-woerner/freeipa_9297_pwpolicy_…
Browse files Browse the repository at this point in the history
…minlength_reset

test_pwpolicy: minlength parameter can be reset with empty string now
  • Loading branch information
rjeffman authored Nov 28, 2023
2 parents 1930d8c + f2a1d50 commit 48c0fd0
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions tests/pwpolicy/test_pwpolicy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,21 +176,10 @@
minlength: ""
register: result
failed_when:
result.changed or
(result.failed and not
("an internal error has occurred" in result.msg or
"int() argument must be" in result.msg))
when: ipa_version is version("4.9", ">=")

- 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", "<")
("an internal error has occurred" in result.msg or
"int() argument must be" in result.msg))
or (not result.failed and not result.changed)

- name: Execute tests if ipa_version >= 4.9.0
when: ipa_version is version("4.9", ">=")
Expand Down

0 comments on commit 48c0fd0

Please sign in to comment.