From 15f49ed8d62d74c315f5e5de1a599f8d3a757b61 Mon Sep 17 00:00:00 2001 From: Cole Higgins Date: Fri, 2 Feb 2024 04:01:44 -0500 Subject: [PATCH] [TestFix] Replacing 'content' with 'file' option in reporttemplate create (#13973) Replacing 'content' with 'file' param --- 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 a84db283d3a..bf66b8311f3 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