Skip to content

Commit

Permalink
Change read to read_legacy_ui (#12844)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3d06bec)
  • Loading branch information
sambible authored and web-flow committed Oct 9, 2023
1 parent f00da59 commit beeaf25
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/foreman/ui/test_activationkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ def test_positive_end_to_end_crud(session, module_org):
indirect=True,
)
def test_positive_end_to_end_register(
session, function_entitlement_manifest_org, repos_collection, rhel7_contenthost, target_sat
session,
function_entitlement_manifest_org,
default_location,
repos_collection,
rhel7_contenthost,
target_sat,
):
"""Create activation key and use it during content host registering
Expand All @@ -98,10 +103,13 @@ def test_positive_end_to_end_register(
repos_collection.setup_content(org.id, lce.id, upload_manifest=False)
ak_name = repos_collection.setup_content_data['activation_key']['name']

repos_collection.setup_virtual_machine(rhel7_contenthost)
repos_collection.setup_virtual_machine(rhel7_contenthost, install_katello_agent=False)
with session:
session.organization.select(org.name)
chost = session.contenthost.read(rhel7_contenthost.hostname, widget_names='details')
session.location.select(default_location.name)
chost = session.contenthost.read_legacy_ui(
rhel7_contenthost.hostname, widget_names='details'
)
assert chost['details']['registered_by'] == f'Activation Key {ak_name}'
ak_values = session.activationkey.read(ak_name, widget_names='content_hosts')
assert len(ak_values['content_hosts']['table']) == 1
Expand Down

0 comments on commit beeaf25

Please sign in to comment.