-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark one RHSSO test for PIT server #17204
base: master
Are you sure you want to change the base?
Conversation
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just one (non-blocking) question.
@@ -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": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can try available setting settings.robottelo.cdn == true
here? Or add missing setting in robottelo.yaml
CC @rmynar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not say we have to "depend" on validators. But the idea is to maintain validators responsibly (not only in this case) so we can "trust" them.
Relying on default values and modifying the settings only in specific cases seems OK to me. (The rhel_source setting has to be explicitly changed to "internal" usually for interoperability testing - i.e. testing with unreleased RHEL version)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The setting is set in the .template
config
robottelo/conf/robottelo.yaml.template
Lines 25 to 27 in b7406c0
# The source of RHEL packages. Can be one of: | |
# internal, ga (CDN) | |
RHEL_SOURCE: "ga" |
And yes, in this case, we rely on Dynaconf validators to populate the setting for us, but since validators run unconditionally every time (now even in Robottelo CI/CQ), I share the same view as @rmynar. However, there is no harm in adding an explicit setting in the YAML config. Anyone, feel free to submit a patch.
@@ -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": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not say we have to "depend" on validators. But the idea is to maintain validators responsibly (not only in this case) so we can "trust" them.
Relying on default values and modifying the settings only in specific cases seems OK to me. (The rhel_source setting has to be explicitly changed to "internal" usually for interoperability testing - i.e. testing with unreleased RHEL version)
RHSSO needs some packages shipped by RHEL that we expect to change, we should interop test it. The test will probably never run in older z-streams without it. The test is destructive though, it runs an installer. Debate on allowing destructive tests in PIT is in the corresponding PR in our config repo.