mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
Cert tests: Do not fail on new dogtag profile not found error message
The error message for an invalid profile has changes in dogtag. The new message is "Certificate operation cannot be completed: Unable to get enrollment template for <profile name>: Profile not found" Therefore the test is additionally checking for "Profile not found" now.
This commit is contained in:
@@ -194,7 +194,7 @@
|
||||
profile: invalid_profile
|
||||
state: requested
|
||||
register: result
|
||||
failed_when: not (result.failed and "Request failed with status 400" in result.msg)
|
||||
failed_when: not (result.failed and ("Request failed with status 400" in result.msg or "Profile not found" in result.msg))
|
||||
|
||||
|
||||
# CLEANUP TEST ITEMS
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
profile: invalid_profile
|
||||
state: requested
|
||||
register: result
|
||||
failed_when: not (result.failed and "Request failed with status 400" in result.msg)
|
||||
failed_when: not (result.failed and ("Request failed with status 400" in result.msg or "Profile not found" in result.msg))
|
||||
|
||||
# CLEANUP TEST ITEMS
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
profile: invalid_profile
|
||||
state: requested
|
||||
register: result
|
||||
failed_when: not (result.failed and "Request failed with status 400" in result.msg)
|
||||
failed_when: not (result.failed and ("Request failed with status 400" in result.msg or "Profile not found" in result.msg))
|
||||
|
||||
# CLEANUP TEST ITEMS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user