Skip to content

Commit

Permalink
First real commit with stack dump, crude
Browse files Browse the repository at this point in the history
Signed-off-by: Clinton Wolfe <[email protected]>
  • Loading branch information
clintoncwolfe committed Feb 10, 2020
1 parent 1407147 commit f8e8748
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 7 additions & 0 deletions controls/run-controls.rb
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions inspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: inspec-test-profile-run-context
title: InSpec Profile
maintainer: InSpec Engineering
copyright: Chef Software, Inc.
copyright_email: [email protected]
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

0 comments on commit f8e8748

Please sign in to comment.