mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
7aa4c6da8e
Previous, require_controls was including all controls from the named profile, despite the documented behavior being that it only includes controls explicitly pulled in by the user. The cause was two-fold: 1) A previous refactor meant that we weren't removing the rule from the correct context, and 2) We weren't descending down the dependency tree when filtering rules. This commit fixes the require_controls DSL method and adds a test to help prevent future regressions. Signed-off-by: Steven Danna <steve@chef.io> |
||
---|---|---|
.. | ||
complete-metadata | ||
complete-profile | ||
dependencies | ||
empty-metadata | ||
failures | ||
legacy-complete-metadata | ||
legacy-empty-metadata | ||
legacy-simple-metadata | ||
library | ||
profile-support-skip | ||
simple-inheritance | ||
simple-metadata | ||
skippy-controls | ||
skippy-profile-os | ||
spec_only | ||
supermarket-dep | ||
supported_inspec | ||
unsupported_inspec | ||
windows-only |