inspec/lib
Steven Danna 7aa4c6da8e Fix require_controls DSL method
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>
2016-09-26 15:20:56 +02:00
..
bundles Improve error messages from compliance fetcher 2016-09-26 01:57:58 +02:00
fetchers Avoid spurious downloads during dependency management 2016-09-22 18:36:00 +02:00
inspec Fix require_controls DSL method 2016-09-26 15:20:56 +02:00
matchers changed regex for integer to allow 0 2016-08-29 19:39:39 -04:00
resources Fix minor typo in sys_info documentation 2016-09-26 10:56:16 +01:00
source_readers Remove SourceReader::Inspec#prepare_load_path 2016-09-07 10:35:58 +02:00
utils handle xinetd config with only one entry 2016-08-16 17:23:22 +02:00
inspec.rb move force encoding to binary only, so that it does not affect the use of inspec in lib mode 2016-09-13 16:18:40 +02:00