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

Component Evaluation - add RHEL 8 and 9 host versions #13602

Merged
merged 2 commits into from
Jan 15, 2024
Merged
Changes from 1 commit
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
11 changes: 7 additions & 4 deletions tests/foreman/ui/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -1535,8 +1535,9 @@ def test_global_registration_upgrade_subscription_manager(

@pytest.mark.tier3
@pytest.mark.usefixtures('enable_capsule_for_registration')
Gauravtalreja1 marked this conversation as resolved.
Show resolved Hide resolved
@pytest.mark.rhel_ver_list([7, 8, 9])
Gauravtalreja1 marked this conversation as resolved.
Show resolved Hide resolved
def test_global_re_registration_host_with_force_ignore_error_options(
session, module_activation_key, default_os, default_smart_proxy, rhel7_contenthost
session, module_activation_key, default_os, default_smart_proxy, rhel_contenthost
):
"""If the ignore_error and force checkbox is checked then registered host can
get re-registered without any error.
Expand All @@ -1556,7 +1557,7 @@ def test_global_re_registration_host_with_force_ignore_error_options(

:parametrized: yes
"""
client = rhel7_contenthost
client = rhel_contenthost
with session:
cmd = session.host.get_register_command(
{
Expand All @@ -1568,11 +1569,13 @@ def test_global_re_registration_host_with_force_ignore_error_options(
'advanced.ignore_error': True,
}
)
client.execute(cmd)
result = client.execute(cmd)
assert result.status == 0
result = client.execute('subscription-manager identity')
assert result.status == 0
# rerun the register command
client.execute(cmd)
result = client.execute(cmd)
assert result.status == 0
result = client.execute('subscription-manager identity')
assert result.status == 0

Expand Down
Loading