mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
a5309ea392
Signed-off-by: Ryan Davis <zenspider@chef.io>
34 lines
833 B
Ruby
34 lines
833 B
Ruby
require "functional/helper"
|
|
|
|
describe "inspec supermarket" do
|
|
include FunctionalHelper
|
|
|
|
before do
|
|
skip_windows!
|
|
end
|
|
|
|
it "help" do
|
|
out = inspec("supermarket help")
|
|
out.exit_status.must_equal 0
|
|
out.stdout.must_include "inspec supermarket exec PROFILE"
|
|
end
|
|
|
|
it "info" do
|
|
out = inspec("supermarket info dev-sec/ssh-baseline")
|
|
out.exit_status.must_equal 0
|
|
out.stderr.must_equal ""
|
|
out.stdout.must_include "name: \e[0m ssh-baseline"
|
|
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.exit_status.wont_equal 1
|
|
out.stderr.must_equal ""
|
|
out.stdout.must_include "Profile Summary"
|
|
out.stdout.must_include "Test Summary"
|
|
end
|
|
end
|