Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] Enhanced security group test case for multiple checks #9886

Merged
merged 3 commits into from
Jan 30, 2020
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: 7 additions & 3 deletions cfme/tests/cloud_infra_common/test_relationships.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,13 @@ def test_change_network_security_groups_per_page_items(setup_provider, appliance
"""
view = navigate_to(provider, "NetworkSecurityGroup")
view.toolbar.view_selector.select('List View')
for item_count in [10, 20, 50]:
view.paginator.set_items_per_page(item_count)
assert len(view.entities.get_all()) <= view.paginator.items_per_page
total_count = view.paginator.items_amount
for item_count in [5, 10, 20, 50, 100, 200, 500, 1000]:
if item_count <= total_count:
view.paginator.set_items_per_page(item_count)
assert len(view.entities.get_all()) <= view.paginator.items_per_page
else:
break

mshriver marked this conversation as resolved.
Show resolved Hide resolved

@pytest.fixture(scope="function")
Expand Down