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 documentation to known issue in the test suite. #4730
Add documentation to known issue in the test suite. #4730
Conversation
tests/README.md
Outdated
Rule <rule_id> has not been evaluated! Wrong profile selected in test scenario? | ||
``` | ||
|
||
If you are using SCAP 1.3 content (which is built by default) and you are sure that you have selected the rule in the particular profile, it might be that the target scan environment has OpenSCAP version prior to 1.3.1. To solve this issue you can either update the OpenSCAP package in the target scan environment or build SCAP 1.2 content. To build SCAP 1.2 content check the [SSG Developer Guide](../docs/manual/developer_guide.adoc) |
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 it isn't fully correct because OpenSCAP in Red Hat Enterprise Linux 7.7 and newer can process SCAP 1.3 content even if there is openscap-1.2.? Could you take a look?
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've updated the doc text, can you please take a look?
When using test suite with SCAP 1.3 and OpenSCAP with version which contains the fetch-remote-resources bug, an er=ror will be thrown saying that a rule is probably not selected in a profile. This documentation explains how to solve the issue.
2d0dc13
to
fe4e15e
Compare
1 - Test suite fails to test rule with the message: | ||
|
||
``` | ||
Rule <rule_id> has not been evaluated! Wrong profile selected in test scenario? |
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.
Would it be possible to improve error message?
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 it is. It would have to parse the oscap output and identify the error, but I think it is not a trivial change.
Description:
When using test suite with SCAP 1.3 and OpenSCAP with version which
contains the fetch-remote-resources bug, an er=ror will be thrown saying that a rule is probably not
selected in a profile. This documentation explains how to solve the issue.
Fixes tests/test_suite.py rule fails with Rule xccdf_org.ssgproject.content_rule_coredump_disable_backtraces has not been evaluated! Wrong profile selected in test scenario? #4703