diff --git a/README.md b/README.md new file mode 100644 index 0000000..24fc614 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# run-context InSpec Text Profile + +This is a test inspec profile used to exercise the ability of InSpec to determine how it is being run +under Test Kitchen and Audit Cookbook. + +It is not a typical profile and is not intended for normal public consumption, nor is it a good example. diff --git a/controls/run-controls.rb b/controls/run-controls.rb new file mode 100644 index 0000000..842bee9 --- /dev/null +++ b/controls/run-controls.rb @@ -0,0 +1,7 @@ + +stack = caller_locations(4) +control "json-stack" do + describe JSON.dump(stack) do + its('length') { should be 0 } # intentionally fail, just dump + end +end diff --git a/inspec.yml b/inspec.yml new file mode 100644 index 0000000..3d76792 --- /dev/null +++ b/inspec.yml @@ -0,0 +1,10 @@ +name: inspec-test-profile-run-context +title: InSpec Profile +maintainer: InSpec Engineering +copyright: Chef Software, Inc. +copyright_email: inspec@chef.io +license: Apache-2.0 +summary: An InSpec Compliance Profile to test inspec run context detection under test-kitchen +version: 0.1.0 +supports: + platform: os