-
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
make oscap tests run on rhel9 backend #14716
Conversation
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.
This should also fix our fapolicyd pipeline on RHEL9. Thanks for the quick fix
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
pytest_fixtures/component/oscap.py
Outdated
def oscap_content_path(session_target_sat): | ||
def oscap_content_source(session_target_sat): | ||
"""Get scap content file path""" | ||
return f'{settings.oscap.content_dir}/ssg-rhel{session_target_sat.os_distribution_version.split(".")[0]}-ds.xml' |
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.
return f'{settings.oscap.content_dir}/ssg-rhel{session_target_sat.os_distribution_version.split(".")[0]}-ds.xml' | |
return f'{settings.oscap.content_dir}/ssg-rhel{session_target_sat.os_version.major}-ds.xml' |
Same suggestion for all the other os_distribution_version
occurrences.
When you rerun PRT add |
@pondrejk How about we update oscap.yaml in CI repo based on Satellite RHEL version? It should solve the issues for all the versions.
|
ok that seems superior, let me test it out |
@jameerpathan111 @Griffin-Sullivan could you please take a look at satellite-jenkins mr !1316 |
Awaits satellite-jenkins config merge for prt run, local results with latest changes look good |
trigger: test-robottelo |
PRT Result
|
Co-authored-by: Ondřej Gajdušek <[email protected]>
trigger: test-robottelo |
PRT Result
|
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
Co-authored-by: Ondřej Gajdušek <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ondřej Gajdušek <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ondřej Gajdušek <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
make oscap tests run on rhel9 backend (#14716) Co-authored-by: Ondřej Gajdušek <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
make oscap tests run on rhel9 backend (#14716) Co-authored-by: Ondřej Gajdušek <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
make oscap tests run on rhel9 backend (#14716) Co-authored-by: Ondřej Gajdušek <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ondřej Gajdušek <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Problem Statement
Part of the oscap tests were too rhel8 backend specific and didn't run on rhel9 sat
Solution
Making the tests more flexible
Related Issues
Requires satelliteqe-jenkins mr 1300
Results form local rhel9 sat run: