-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework as an audit-cookbook-only profile
Signed-off-by: Clinton Wolfe <[email protected]>
- Loading branch information
1 parent
f8e8748
commit 36b1bef
Showing
4 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# run-context InSpec Text Profile | ||
# Audit Cookbook run-context InSpec Test 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. | ||
This is a test inspec profile used to exercise the ability of InSpec to detect when it is being run | ||
under Audit Cookbook. | ||
|
||
It is not a typical profile and is not intended for normal public consumption, nor is it a good example. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
|
||
stack = caller_locations(4) | ||
control "json-stack" do | ||
describe stack.to_json do | ||
it { should be_kind_of String } | ||
end | ||
end | ||
|
||
require "inspec/utils/telemetry/run_context" | ||
|
||
control "run-context" do | ||
describe Inspec::Telemetry::RunContextProbe.guess_run_context do | ||
it { should cmp "audit-cookbook" } | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
name: inspec-test-profile-run-context | ||
name: inspec-test-profile-run-context-audit | ||
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 | ||
summary: An InSpec Compliance Profile to test inspec run context detection under audit-cookbook | ||
version: 0.1.0 | ||
supports: | ||
platform: os |