From 2908992980d95a682c2c67eb24254c2ef9c244e3 Mon Sep 17 00:00:00 2001 From: Jameer Pathan <21165044+jameerpathan111@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:11:20 +0100 Subject: [PATCH] Fix assertion for test_katello_certs_check_output_invalid_input (#17002) --- tests/foreman/sys/test_katello_certs_check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/foreman/sys/test_katello_certs_check.py b/tests/foreman/sys/test_katello_certs_check.py index 523567e1c00..6f5ce8e3d23 100644 --- a/tests/foreman/sys/test_katello_certs_check.py +++ b/tests/foreman/sys/test_katello_certs_check.py @@ -73,11 +73,12 @@ class TestKatelloCertsCheck: CA cert (a.k.a cacert.crt or rootCA.pem) can be used as bundle file. """ + error_message = f"error 26 at 0 depth lookup: {'unsupported' if settings.repos.rhel_major_version == '8' else 'unsuitable'} certificate purpose" invalid_inputs = [ ( { 'check': 'Checking CA bundle against the certificate file', - 'message': 'error 26 at 0 depth lookup: unsupported certificate purpose', + 'message': error_message, }, 'certs/invalid.crt', 'certs/invalid.key',