-
Notifications
You must be signed in to change notification settings - Fork 744
Add rule removed test #13358
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
Add rule removed test #13358
Conversation
e161e44
to
29c835e
Compare
29c835e
to
2170d8f
Compare
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 have reviewed that the test passes as a part of the "Build, Test on Fedora Latest" CI job. I have also run the test locally and it detected my change and failed successfully.
Code Climate has analyzed commit 8798b3d and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 61.9% (0.0% change). View more on Code Climate. |
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 have reviewed the CI output of the Build, Test on Fedora Latest job and I have managed to run the test locally and make it fail successfully.
Description:
Add tests for RHEL (and other in future) to see if a rule has been removed based on the last release.
Rationale:
So we don't have to manually review this.
Review Hints:
wget https://github.com/ComplianceAsCode/content/releases/download/v0.1.76/scap-security-guide-0.1.76.zip
unzip scap-security-guide-0.1.76.zip
export ADDITIONAL_CMAKE_OPTIONS="-DENABLE_CHECK_RULE_REMOVAL:BOOL=ON -DOLD_RELEASE_DIR=scap-security-guide-0.1.76"
./build_product rhel9 rhel10 rhel8 # or whatever product you changed
ctest -R rule-removal --output-on-failure