inspec/test/integration/run-context-tk/controls/during-verify.rb
Clinton Wolfe 43a5fd7945 Test kitchen setup to verify Telemetry RunContext detection under TestKitchen
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2020-05-25 21:00:24 -04:00

16 lines
433 B
Ruby

# This seemingly pointless test is here so that a dump of
# the stack will appear in the test output for debugging
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_probe"
control "run-context" do
describe Inspec::Telemetry::RunContextProbe.guess_run_context do
it { should cmp "test-kitchen" }
end
end