Skip to content
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

Merged

Conversation

ggbecker
Copy link
Member

@ggbecker ggbecker commented Aug 15, 2019

Description:

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)
Copy link
Collaborator

@jan-cerny jan-cerny Aug 15, 2019

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?

Copy link
Member Author

@ggbecker ggbecker Aug 15, 2019

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?

@jan-cerny jan-cerny self-assigned this Aug 15, 2019
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.
@ggbecker ggbecker force-pushed the document-test-suite-with-scap12 branch from 2d0dc13 to fe4e15e Compare August 15, 2019 11:25
@jan-cerny jan-cerny merged commit f7b8b76 into ComplianceAsCode:master Aug 15, 2019
1 - Test suite fails to test rule with the message:

```
Rule <rule_id> has not been evaluated! Wrong profile selected in test scenario?
Copy link
Member

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?

Copy link
Member Author

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.

@ggbecker ggbecker deleted the document-test-suite-with-scap12 branch August 27, 2019 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants