mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
ipacert: Fix tests for inexistent certificate
After a PKI update the message returned for 'cert_show' in the case of an inexistent certificate has changed, causing tests to fail. The fix is only required for the tests, as the behavior has not changed. Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
reason: 9
|
||||
state: revoked
|
||||
register: result
|
||||
failed_when: not (result.failed and ("Request failed with status 404" in result.msg or "Certificate serial number 0x123456789 not found" in result.msg))
|
||||
failed_when: not (result.failed and ("Request failed with status 404" in result.msg or result.msg is regex("Certificate [^0]*0x123456789 not found")))
|
||||
|
||||
- name: Try to release revoked certificate
|
||||
ipacert:
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
reason: 9
|
||||
state: revoked
|
||||
register: result
|
||||
failed_when: not (result.failed and ("Request failed with status 404" in result.msg or "Certificate serial number 0x123456789 not found" in result.msg))
|
||||
failed_when: not (result.failed and ("Request failed with status 404" in result.msg or result.msg is regex("Certificate [^0]*0x123456789 not found")))
|
||||
|
||||
- name: Try to release revoked certificate
|
||||
ipacert:
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
reason: 9
|
||||
state: revoked
|
||||
register: result
|
||||
failed_when: not (result.failed and ("Request failed with status 404" in result.msg or "Certificate serial number 0x123456789 not found" in result.msg))
|
||||
failed_when: not (result.failed and ("Request failed with status 404" in result.msg or result.msg is regex("Certificate [^0]*0x123456789 not found")))
|
||||
|
||||
- name: Try to release revoked certificate
|
||||
ipacert:
|
||||
|
||||
Reference in New Issue
Block a user