Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Nov 27, 2023
1 parent 7d3133e commit f6e7aff
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/foreman/ui/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -2492,30 +2492,26 @@ def test_all_hosts_delete(session, target_sat, function_org, function_location,
with target_sat.ui_session() as session:
session.organization.select(function_org.name)
session.location.select(function_location.name)
session.all_hosts.delete(host.name)
assert session.all_hosts.search(host.name) is None
assert session.all_hosts.delete(host.name)


@pytest.mark.tier2
def test_all_hosts_bulk_delete(session, target_sat, function_org, function_location, new_host_ui):
"""Create several hosts, and delete them via Bulk Actions in All Hosts UI
:id: af1b4a66-dd83-47c3-904b-e8627119cc53
:expectedresults: Successful deletion of multiple hosts at once through Bulk Action
:CaseComponent: Hosts-Content
:CaseComponent:Hosts-Content
:Team: Phoenix-content
:CaseLevel: System
"""
hosts = [
for _ in range(10):
target_sat.api.Host(organization=function_org, location=function_location).create()
for _ in range(3)
]
with target_sat.ui_session() as session:
session.organization.select(function_org.name)
session.location.select(function_location.name)
session.all_hosts.bulk_delete_all()
for host in hosts:
assert session.all_hosts.search(host.name) is None
assert session.all_hosts.bulk_delete_all()

0 comments on commit f6e7aff

Please sign in to comment.