From 46eb43596f1702279fa54f4354d0ebebf63965b6 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Fri, 2 Feb 2024 07:14:58 -0500 Subject: [PATCH] [6.14.z] [TestFix] Replacing 'content' with 'file' option in reporttemplate create (#13978) [TestFix] Replacing 'content' with 'file' option in reporttemplate create (#13973) Replacing 'content' with 'file' param (cherry picked from commit 15f49ed8d62d74c315f5e5de1a599f8d3a757b61) Co-authored-by: Cole Higgins --- tests/foreman/cli/test_reporttemplates.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/foreman/cli/test_reporttemplates.py b/tests/foreman/cli/test_reporttemplates.py index ca93b8a7318..01b471d43fd 100644 --- a/tests/foreman/cli/test_reporttemplates.py +++ b/tests/foreman/cli/test_reporttemplates.py @@ -321,9 +321,7 @@ def test_positive_dump_report(module_target_sat): """ name = gen_alpha() content = gen_alpha() - report_template = module_target_sat.cli_factory.report_template( - {'name': name, 'content': content} - ) + report_template = module_target_sat.cli_factory.report_template({'name': name, 'file': content}) result = module_target_sat.cli.ReportTemplate.dump({'id': report_template['id']}) assert content in result @@ -402,9 +400,7 @@ def test_positive_generate_report_sanitized(module_target_sat): } ) - report_template = module_target_sat.cli_factory.report_template( - {'content': REPORT_TEMPLATE_FILE} - ) + report_template = module_target_sat.cli_factory.report_template({'file': REPORT_TEMPLATE_FILE}) result = module_target_sat.cli.ReportTemplate.generate({'name': report_template['name']}) assert 'Name,Operating System' in result # verify header of custom template