From a215fd452c92c766746097d23f9f9d99e49f2d35 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:11:37 -0400 Subject: [PATCH] [6.16.z] Update regex pattern for installed products report (#16808) --- tests/foreman/api/test_reporttemplates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/foreman/api/test_reporttemplates.py b/tests/foreman/api/test_reporttemplates.py index 3b3ba98e75d..97390f5aece 100644 --- a/tests/foreman/api/test_reporttemplates.py +++ b/tests/foreman/api/test_reporttemplates.py @@ -969,7 +969,7 @@ def test_positive_installed_products( ) assert rake.status == 0, f'Rake call failed with this output:\n({rake.stdout}).' - pattern = re.compile(r'name: "(.*?)".*?cp_product_id: "(.*?)"') + pattern = re.compile(r'name: "(.*?)"\s*.*?\s*cp_product_id: "(.*?)"') matches = pattern.findall(rake.stdout) products = [f'{match[0]} ({match[1]})' for match in matches] assert len(products), 'No installed products to compare.'