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:
Thomas Woerner
2026-01-05 14:50:31 +01:00
parent aa3bf1f015
commit ed62c2f1bf
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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