Skip to content

Commit

Permalink
[TestFix] Replacing 'content' with 'file' option in reporttemplate cr…
Browse files Browse the repository at this point in the history
…eate (SatelliteQE#13973)

Replacing 'content' with 'file' param
  • Loading branch information
ColeHiggins2 authored Feb 2, 2024
1 parent 98972e1 commit 15f49ed
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/foreman/cli/test_reporttemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 15f49ed

Please sign in to comment.