inspec/test
Steven Danna 6034ece853 Initial control isolation support
The goal of this change is to provide an isolated view of the available
profiles when the user calls the include_controls or require_controls
APIs.  Namely,

- A profile should only be able to reference profiles that are part of
  its transitive dependency tree. That is, if the dependency tree for a
  profile looks like the following:

  A
  |- B --> C
  |
  |- D --> E

  Then profile B should only be able to see profile C and fail if it
  tries to reference A, D, or E.

- The same profile should be include-able at different versions from
  different parts of the tree without conflict.  That is, if the
  dependency tree for a profile looks like the following:

  A
  |- B --> C@1.0
  |
  |- D --> C@2.0

  Then profile B should see the 1.0 version of C and profile D should
  see the 2.0 profile C with respect to the included controls.

To achieve these goals we:

- Ensure that we construct ProfileContext objects with respect to the
  correct dependencies in Inspec::DSL.

- Provide a method of accessing all transitively defined rules on a
  ProfileContext without pushing all of the rules onto the same global
  namespace.

This does not yet handle attributes or libraries.
2016-08-25 14:42:55 +02:00
..
cookbooks/os_prepare add iis_site tests and refactor post code review 2016-08-17 06:57:48 -04:00
functional Fixup behavior and add functional tests 2016-08-23 03:07:23 +02:00
integration/default add integration test for package resource 2016-08-24 14:40:26 +02:00
resource Use either /dev/kcore or /dev/core in tests 2016-08-02 14:14:49 +02:00
unit Initial control isolation support 2016-08-25 14:42:55 +02:00
docker_run.rb travis experiment: lower docker concurrency 2016-08-10 12:52:21 +01:00
docker_test.rb Explicitly require docker transport to avoid autoload bug 2016-08-05 17:58:20 +01:00
helper.rb add unit test for new package resource 2016-08-24 14:40:26 +02:00
test-extra.yaml split up tests for travis 2015-09-23 01:51:51 +02:00
test.yaml split up tests for travis 2015-09-23 01:51:51 +02:00