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

Change read to read_legacy_ui #12844

Merged
merged 1 commit into from
Oct 9, 2023
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
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
Loading