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

removing scenario, rhel6 with custom product #17167

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
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
27 changes: 0 additions & 27 deletions tests/foreman/cli/test_activationkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -1487,33 +1487,6 @@ def test_positive_view_content_by_non_admin_user(function_sca_manifest_org, modu
assert reposet[0]['id'] == content[0]['id']


@pytest.mark.tier3
def test_positive_ak_with_custom_product_on_rhel6(
module_org, module_location, rhel6_contenthost, target_sat
):
"""Registering a rhel6 host using an ak with custom repos should not fail

:id: d02c2664-8034-4562-914a-3b68f0c35b32

:customerscenario: true

:steps:
1. Create a custom repo
2. Create ak and add custom repo to ak
3. Register a rhel6 chost with the ak

:expectedresults: Host is registered successfully

:bz: 2038388
"""
entities_ids = target_sat.cli_factory.setup_org_for_a_custom_repo(
{'url': settings.repos.yum_1.url, 'organization-id': module_org.id}
)
ak = target_sat.api.ActivationKey(id=entities_ids['activationkey-id']).read()
result = rhel6_contenthost.register(module_org.label, module_location, ak.name, target_sat)
assert 'The system has been registered with ID' in result.stdout


@pytest.mark.tier3
def test_positive_invalid_release_version(module_sca_manifest_org, module_target_sat):
"""Check invalid release versions when updating or creating an activation key
Expand Down
36 changes: 0 additions & 36 deletions tests/foreman/ui/test_activationkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,42 +1068,6 @@ def test_positive_service_level_subscription_with_custom_product(
assert product.name == chost['content']['repository_sets']['table'][0]['Product']


@pytest.mark.rhel_ver_list([6])
@pytest.mark.tier3
@pytest.mark.skipif((not settings.robottelo.repos_hosting_url), reason='Missing repos_hosting_url')
def test_positive_ak_with_custom_product_on_rhel6(rhel_contenthost, target_sat):
"""Registering a rhel6 host using an ak with custom repos should not fail

:id: 4efed0b5-99af-4933-bea7-92a33984ce10

:customerscenario: true

:steps:
1. Create a custom repo
2. Create ak and add custom repo to ak
3. Register a rhel6 chost with the ak

:expectedresults: Host is registered successfully

:bz: 2038388
"""
org = target_sat.api.Organization().create()
entities_ids = target_sat.cli_factory.setup_org_for_a_custom_repo(
{'url': settings.repos.yum_1.url, 'organization-id': org.id}
)
ak = target_sat.api.ActivationKey(id=entities_ids['activationkey-id']).read()

result = rhel_contenthost.register(org, None, ak.name, target_sat)
assert result.status == 0, f'Failed to register host: {result.stderr}'
assert 'The system has been registered with ID' in result.stdout
with target_sat.ui_session() as session:
session.location.select(constants.DEFAULT_LOC)
session.organization.select(org.name)
ak = session.activationkey.read(ak.name, widget_names='content_hosts')
assert len(ak['content_hosts']['table']) == 1
assert ak['content_hosts']['table'][0]['Name'] == rhel_contenthost.hostname


def test_positive_new_ak_lce_cv_assignment(target_sat):
"""
Test that newly created activation key which has Library and Default Org view
Expand Down
Loading