inspec/test/unit
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
..
dependencies Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
dsl Use per-profile execution contexts for library loading 2016-09-04 20:55:20 +02:00
fetchers Change :shasum key to :sha256 for future upgrade 2016-09-21 10:51:04 +01:00
mock Fix require_controls DSL method 2016-09-26 15:20:56 +02:00
plugins Remove some warnings during the test run 2016-09-09 14:14:36 +01:00
profiles Allow users to reference resources from dependencies 2016-09-19 19:08:43 +02:00
resources replace wmi win32_useraccount with adsi users 2016-09-26 01:31:44 +02:00
source_readers Add GitFetcher and rework Fetchers+SourceReaders 2016-09-09 14:14:36 +01:00
utils Ignore comment lines in /etc/passwd 2016-08-16 10:54:52 +02:00
file_provider_test.rb Add GitFetcher and rework Fetchers+SourceReaders 2016-09-09 14:14:36 +01:00
shell_detector_test.rb Add inspec env command to configure shell tab-completion 2016-08-10 02:07:53 +01:00