From b9fa471d01786102ac0535f72eb605f9fb4bb53b Mon Sep 17 00:00:00 2001 From: Lukas Hellebrandt Date: Wed, 18 Dec 2024 17:53:21 +0100 Subject: [PATCH] Mark one RHSSO test for PIT server --- pytest_fixtures/component/satellite_auth.py | 3 ++- tests/foreman/destructive/test_ldapauthsource.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest_fixtures/component/satellite_auth.py b/pytest_fixtures/component/satellite_auth.py index 9468eba15d1..5a21ff6a75a 100644 --- a/pytest_fixtures/component/satellite_auth.py +++ b/pytest_fixtures/component/satellite_auth.py @@ -289,7 +289,8 @@ def auth_data(request, ad_data, ipa_data): @pytest.fixture(scope='module') def enroll_configure_rhsso_external_auth(module_target_sat): """Enroll the Satellite6 Server to an RHSSO Server.""" - module_target_sat.register_to_cdn() + if settings.robottelo.rhel_source == "ga": + module_target_sat.register_to_cdn() # keycloak-httpd-client-install needs lxml but it's not an rpm dependency + is not documented assert ( module_target_sat.execute( diff --git a/tests/foreman/destructive/test_ldapauthsource.py b/tests/foreman/destructive/test_ldapauthsource.py index d9e4dd50413..27ba4386d66 100644 --- a/tests/foreman/destructive/test_ldapauthsource.py +++ b/tests/foreman/destructive/test_ldapauthsource.py @@ -42,6 +42,7 @@ def rh_sso_hammer_auth_setup(module_target_sat, default_sso_host, request): default_sso_host.update_client_configuration(client_config) +@pytest.mark.pit_server def test_rhsso_login_using_hammer( module_target_sat, enable_external_auth_rhsso,