mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
bcf3aa841c
Not sure why these failures come up in a unified run (versus my running all test files separately). Might be test infection. Might be environmental. Signed-off-by: Ryan Davis <zenspider@chef.io>
41 lines
839 B
Ruby
41 lines
839 B
Ruby
require "functional/helper"
|
|
|
|
describe "inspec supermarket" do
|
|
include FunctionalHelper
|
|
|
|
it "help" do
|
|
out = inspec("supermarket help")
|
|
|
|
out.stdout.must_include "inspec supermarket exec PROFILE"
|
|
|
|
out.stderr.must_equal ""
|
|
|
|
assert_exit_code 0, out
|
|
end
|
|
|
|
it "info" do
|
|
out = inspec("supermarket info dev-sec/ssh-baseline")
|
|
|
|
out.stdout.must_include "name: \e[0m ssh-baseline"
|
|
|
|
out.stderr.must_equal ""
|
|
|
|
assert_exit_code 0, out
|
|
end
|
|
|
|
it "supermarket exec" do
|
|
if is_windows?
|
|
out = inspec("supermarket exec dev-sec/windows-patch-baseline")
|
|
else
|
|
out = inspec("supermarket exec dev-sec/ssh-baseline")
|
|
end
|
|
|
|
out.stdout.must_include "Profile Summary"
|
|
out.stdout.must_include "Test Summary"
|
|
|
|
out.stderr.must_equal ""
|
|
|
|
skip_windows!
|
|
assert_exit_code 100, out
|
|
end
|
|
end
|