mitre / inspec_tools

A command-line and ruby API of utilities, converters and tools for creating, converting and processing security baseline formats, results and data
https://inspec-tools.mitre.org/
Other
92 stars 30 forks source link

Logic fix #83

Closed rx294 closed 5 years ago

rx294 commented 5 years ago

Fix logic to follow

Conditions are checked in order:
any exception in results array -> Profile Error
waived or impact 0 -> N/A (except if #1)
empty results array -> Profile Error (Except if #2)
has any failed tests -> Failed (except if #1-3)
has skip(s) and at least one pass -> Passed whole control (except if #1-4)
all tests within a control pass -> Passed (except if #1-5)
only skips -> Not Reviewed (except if #1-6)