diff --git a/pytest_fixtures/component/satellite_auth.py b/pytest_fixtures/component/satellite_auth.py index 9468eba15d..5a21ff6a75 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 d9e4dd5041..27ba4386d6 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,