As part of delving into InSpec for my CI tests, I decided that I need to have some form of baseline to follow.
- Build a system
- Download and compile the SSG
- Run an oscap remediate using the SSG
- Check the system using InSpec
The idea here is that the remediation should get the system to a point where the more static OVAL checks that SCAP uses should be used as a low water mark for the more dynamic InSpec checks.
I wanted to share the tests in Travis CI in case it helps anyone here find issues with the SSG in the future. For instance, some of the profile renaming just bit us and makes automating the scans pretty interesting.
Ideally, these tests will start showing a 100% pass across the board and this can serve as some help to the community.