Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create report template w/o name #14035

Merged
merged 3 commits into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/foreman/api/test_reporttemplates.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@ def test_positive_generate_report_sanitized():


@pytest.mark.tier2
@pytest.mark.stubbed
def test_negative_create_report_without_name():
def test_negative_create_report_without_name(module_target_sat):
"""Try to create a report template with empty name

:id: a4b577db-144e-4771-a42e-e93887464986
Expand All @@ -378,6 +377,9 @@ def test_negative_create_report_without_name():

:CaseImportance: Medium
"""
with pytest.raises(HTTPError) as report_response:
module_target_sat.api.ReportTemplate(name=' ', template=gen_string('alpha')).create()
assert "Name can't be blank" in report_response.value.response.text


@pytest.mark.tier2
Expand Down
Loading