diff --git a/test_suite/cloud/test_azure.py b/test_suite/cloud/test_azure.py index d9598a54..98c933c0 100644 --- a/test_suite/cloud/test_azure.py +++ b/test_suite/cloud/test_azure.py @@ -313,19 +313,21 @@ def test_rhui_certificate_date(self, host): cert_found = False if test_lib.is_rhel_sap(host): - cert_file = '/etc/pki/rhui/product/content-sap-ha.crt' - cert_found = host.file(cert_file).exists + possible_cert_files = [ + '/etc/pki/rhui/product/content-sap-ha.crt', + '/etc/pki/rhui/product/content-base-sap-ha.crt' + ] else: possible_cert_files = [ '/etc/pki/rhui/product/content.crt', '/etc/pki/rhui/product/content-base.crt' ] - for cert in possible_cert_files: - if host.file(cert).exists: - cert_file = cert - cert_found = True - break + for cert in possible_cert_files: + if host.file(cert).exists: + cert_file = cert + cert_found = True + break assert cert_found, 'The RHUI certificate was not found.'