inspec/test/unit/mock/profiles
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
..
complete-metadata Allow functional tests to pass on OSX 2016-08-26 15:25:59 +02:00
complete-profile add inspec source reader 2016-02-22 11:24:35 +01:00
dependencies Fix require_controls DSL method 2016-09-26 15:20:56 +02:00
empty-metadata add profile tests (non-legacy) 2016-01-20 21:57:23 +01:00
failures fix inherited profile cli report 2016-09-04 18:28:01 +02:00
legacy-complete-metadata clearly identify legacy profile tests and fix identification 2016-01-19 15:48:06 +01:00
legacy-empty-metadata clearly identify legacy profile tests and fix identification 2016-01-19 15:48:06 +01:00
legacy-simple-metadata add profile tests (non-legacy) 2016-01-20 21:57:23 +01:00
library Allow functional tests to pass on OSX 2016-08-26 15:25:59 +02:00
profile-support-skip Skip controls from profile's that don't support the current platform 2016-09-14 09:57:53 +01:00
simple-inheritance fix inherited profile cli report 2016-09-04 18:28:01 +02:00
simple-metadata add profile tests (non-legacy) 2016-01-20 21:57:23 +01:00
skippy-controls Show skip_message and correct title 2016-09-23 07:47:21 +01:00
skippy-profile-os Use only strings in resource examples, docs and tests 2016-05-03 23:27:18 +01:00
spec_only introduce cli report formatter 2016-06-15 17:11:29 +02:00
supermarket-dep Provide inspec.yml shortcut syntax 2016-09-14 08:46:06 +02:00
supported_inspec skip profiles if the platform isnt supported 2016-04-16 15:34:23 -04:00
unsupported_inspec skip profiles if the platform isnt supported 2016-04-16 15:34:23 -04:00
windows-only Skip controls from profile's that don't support the current platform 2016-09-14 09:57:53 +01:00