Skip to content

Commit

Permalink
[6.15.z] Fix hostCollection install tests (#16391)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE committed Sep 18, 2024
1 parent bdaec3b commit 87e5beb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/foreman/ui/test_hostcollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def test_positive_end_to_end(module_target_sat, module_org_with_parameter, smart

@pytest.mark.tier2
def test_negative_install_via_remote_execution(
session, module_target_sat, module_org_with_parameter, smart_proxy_location
module_target_sat, module_org_with_parameter, smart_proxy_location
):
"""Test basic functionality of the Hosts collection UI install package via
remote execution.
Expand All @@ -274,7 +274,8 @@ def test_negative_install_via_remote_execution(
host_collection = module_target_sat.api.HostCollection(
host=[host.id for host in hosts], organization=module_org_with_parameter
).create()
with session:
with module_target_sat.ui_session() as session:
session.organization.select(module_org_with_parameter.name)
session.location.select(smart_proxy_location.name)
job_values = session.hostcollection.manage_packages(
host_collection.name,
Expand All @@ -290,7 +291,7 @@ def test_negative_install_via_remote_execution(

@pytest.mark.tier2
def test_negative_install_via_custom_remote_execution(
session, module_target_sat, module_org_with_parameter, smart_proxy_location
module_target_sat, module_org_with_parameter, smart_proxy_location
):
"""Test basic functionality of the Hosts collection UI install package via
remote execution - customize first.
Expand All @@ -312,7 +313,8 @@ def test_negative_install_via_custom_remote_execution(
host_collection = module_target_sat.api.HostCollection(
host=[host.id for host in hosts], organization=module_org_with_parameter
).create()
with session:
with module_target_sat.ui_session() as session:
session.organization.select(module_org_with_parameter.name)
session.location.select(smart_proxy_location.name)
job_values = session.hostcollection.manage_packages(
host_collection.name,
Expand Down

0 comments on commit 87e5beb

Please sign in to comment.