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

Hj-298 - Fix tests/ctl/core/test_api.py::TestSystemList::test_vendor_deleted_systems test #5570

Merged
merged 1 commit into from
Dec 6, 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
10 changes: 5 additions & 5 deletions tests/ctl/core/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,9 +1669,9 @@ def test_list_with_pagination_and_multiple_filters_2(
"vendor_deleted_date, expected_systems_count, show_deleted",
[
(datetime.now() - timedelta(days=1), 1, True),
(datetime.now() - timedelta(days=1), 0, None),
(datetime.now() + timedelta(days=1), 1, None),
(None, 1, None),
(datetime.now() - timedelta(days=1), 0, False),
(datetime.now() + timedelta(days=1), 1, False),
(None, 1, False),
],
)
def test_vendor_deleted_systems(
Expand All @@ -1691,13 +1691,13 @@ def test_vendor_deleted_systems(
url=test_config.cli.server_url,
headers=test_config.user.auth_header,
resource_type="system",
query_params={"show_deleted": True} if show_deleted else {},
query_params={"show_deleted": show_deleted, "size": 50},
)

assert result.status_code == 200
result_json = result.json()

assert len(result_json) == expected_systems_count
assert len(result_json["items"]) == expected_systems_count


@pytest.mark.unit
Expand Down
Loading