Skip to content

Commit

Permalink
Mark one RHSSO test for PIT server
Browse files Browse the repository at this point in the history
  • Loading branch information
lhellebr committed Feb 4, 2025
1 parent 80d16cf commit 2aa0fb0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pytest_fixtures/component/satellite_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,15 @@ 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.execute(
'yum -y --disableplugin=foreman-protector install '
'mod_auth_openidc keycloak-httpd-client-install'
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(
'yum -y --disableplugin=foreman-protector install '
'mod_auth_openidc keycloak-httpd-client-install python3-lxml '
).status
== 0
)
# if target directory not given it is installing in /usr/local/lib64
module_target_sat.execute('python3 -m pip install lxml -t /usr/lib64/python3.6/site-packages')
Expand Down
1 change: 1 addition & 0 deletions robottelo/config/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@
],
robottelo=[
Validator('robottelo.settings.ignore_validation_errors', is_type_of=bool, default=False),
Validator('robottelo.rhel_source', default='ga', is_in=['ga', 'internal']),
Validator(
'robottelo.sat_non_ga_versions',
is_type_of=list,
Expand Down
1 change: 1 addition & 0 deletions tests/foreman/destructive/test_ldapauthsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2aa0fb0

Please sign in to comment.