From 6b4aa48eeacedd0207a01d837209ca580e5988cd Mon Sep 17 00:00:00 2001 From: Jameer Pathan <21165044+jameerpathan111@users.noreply.github.com> Date: Thu, 6 Feb 2025 12:54:13 +0530 Subject: [PATCH] Fix test_positive_capsule_certs_generate_with_special_char --- .github/CODEOWNERS | 1 - tests/foreman/destructive/test_capsule.py | 44 ----------------------- 2 files changed, 45 deletions(-) delete mode 100644 tests/foreman/destructive/test_capsule.py diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 239ab0cf1d2..209a832f787 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -303,7 +303,6 @@ tests/foreman/cli/test_abrt.py @SatelliteQE/team-platform tests/foreman/cli/test_bootstrap_script.py @SatelliteQE/team-platform tests/foreman/cli/test_capsule.py @SatelliteQE/team-platform tests/foreman/cli/test_installer.py @SatelliteQE/team-platform -tests/foreman/destructive/test_capsule.py @SatelliteQE/team-platform tests/foreman/destructive/test_capsule_loadbalancer.py @SatelliteQE/team-platform tests/foreman/destructive/test_clone.py @SatelliteQE/team-platform tests/foreman/destructive/test_fm_upgrade.py @SatelliteQE/team-platform diff --git a/tests/foreman/destructive/test_capsule.py b/tests/foreman/destructive/test_capsule.py deleted file mode 100644 index 9d3ce22b420..00000000000 --- a/tests/foreman/destructive/test_capsule.py +++ /dev/null @@ -1,44 +0,0 @@ -"""Test class for the capsule CLI. - -:Requirement: ForemanProxy - -:CaseAutomation: Automated - -:CaseComponent: ForemanProxy - -:Team: Platform - -:CaseImportance: Critical - -""" - -from fauxfactory import gen_string -import pytest - -from robottelo.hosts import Capsule -from robottelo.utils.installer import InstallerCommand - -pytestmark = [pytest.mark.destructive] - - -@pytest.mark.tier1 -def test_positive_capsule_certs_generate_with_special_char(target_sat): - """Verify capsule-certs-generate with special character in organization - - :id: e9dc6a64-4be4-11ed-8b27-9f5cc2f1b246 - - :expectedresults: capsule-certs-generate works - - :BZ: 1908841 - - :customerscenario: true - """ - capsule = Capsule('capsule.example.com') - # Create an org with a special char in its name and set it as the default using installer - org = target_sat.api.Organization(name=f"{gen_string('alpha')}'s").create() - result = target_sat.install(InstallerCommand(f'foreman-initial-organization "{org.name}"')) - assert result.status == 0 - # Verify capsule-certs-generate works with special chars in org.name - _, result, _ = target_sat.capsule_certs_generate(capsule) - assert result.status == 0 - assert f'subscription-manager register --org "{org.name}"' in result.stdout