From d3df6cf691624e2e89986b0e9acea3ab78ecb987 Mon Sep 17 00:00:00 2001 From: Ladislav Vasina Date: Mon, 9 Dec 2024 17:38:24 +0100 Subject: [PATCH] Fix outdated 6.16 reporting tests --- tests/foreman/ui/test_reporttemplates.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/foreman/ui/test_reporttemplates.py b/tests/foreman/ui/test_reporttemplates.py index 722b6e8be39..a5140fc2dcc 100644 --- a/tests/foreman/ui/test_reporttemplates.py +++ b/tests/foreman/ui/test_reporttemplates.py @@ -282,7 +282,7 @@ def test_positive_generate_subscriptions_report_json( :CaseImportance: Medium """ # generate Subscriptions report - with session: + with module_target_sat.ui_session() as session: file_path = session.reporttemplate.generate( 'Subscription - General Report', values={'output_format': 'JSON'} ) @@ -295,6 +295,7 @@ def test_positive_generate_subscriptions_report_json( 'Account number', 'Available', 'Contract number', + 'Days Remaining', 'End date', 'ID', 'Name', @@ -386,7 +387,7 @@ def test_positive_schedule_generation_and_get_mail( # make sure postfix daemon is running target_sat.execute('systemctl start postfix') # generate Subscriptions report - with session: + with target_sat.ui_session() as session: session.reporttemplate.schedule( 'Subscription - General Report', values={ @@ -426,6 +427,7 @@ def test_positive_schedule_generation_and_get_mail( 'Account number', 'Available', 'Contract number', + 'Days Remaining', 'End date', 'ID', 'Name',