From 771f6a72ddac3d755d07c1a3cb3e226a62d65b43 Mon Sep 17 00:00:00 2001 From: vijay sawant Date: Fri, 13 Dec 2024 19:50:52 +0530 Subject: [PATCH] removing scenario, rhel6 with custom product (#17167) (cherry picked from commit 5d6fdf95078044ada893e74b13d2ef45d574e10d) --- tests/foreman/cli/test_activationkey.py | 27 ------------------- tests/foreman/ui/test_activationkey.py | 36 ------------------------- 2 files changed, 63 deletions(-) diff --git a/tests/foreman/cli/test_activationkey.py b/tests/foreman/cli/test_activationkey.py index 2910395d328..a58e5b834b1 100644 --- a/tests/foreman/cli/test_activationkey.py +++ b/tests/foreman/cli/test_activationkey.py @@ -1496,33 +1496,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 diff --git a/tests/foreman/ui/test_activationkey.py b/tests/foreman/ui/test_activationkey.py index 19ec8a5762d..7b9c36a3d1e 100644 --- a/tests/foreman/ui/test_activationkey.py +++ b/tests/foreman/ui/test_activationkey.py @@ -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