From ed62c2f1bfb0863ce196699d59f81ea502e58d71 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Mon, 5 Jan 2026 14:50:31 +0100 Subject: [PATCH] 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 not found" Therefore the test is additionally checking for "Profile not found" now. --- tests/cert/test_cert_host.yml | 2 +- tests/cert/test_cert_service.yml | 2 +- tests/cert/test_cert_user.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cert/test_cert_host.yml b/tests/cert/test_cert_host.yml index 89b4203e..7e5b4d60 100644 --- a/tests/cert/test_cert_host.yml +++ b/tests/cert/test_cert_host.yml @@ -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 diff --git a/tests/cert/test_cert_service.yml b/tests/cert/test_cert_service.yml index ce8365fa..906acd64 100644 --- a/tests/cert/test_cert_service.yml +++ b/tests/cert/test_cert_service.yml @@ -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 diff --git a/tests/cert/test_cert_user.yml b/tests/cert/test_cert_user.yml index cf6a1686..799f644f 100644 --- a/tests/cert/test_cert_user.yml +++ b/tests/cert/test_cert_user.yml @@ -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