mirror of
https://github.com/inspec/inspec
synced 2024-12-18 09:03:12 +00:00
457a33a2b3
* Fix bundle exec calls and add test. Signed-off-by: Jared Quick <jquick@chef.io> * Add exit check for supermarket exec. Signed-off-by: Jared Quick <jquick@chef.io>
28 lines
707 B
Ruby
28 lines
707 B
Ruby
# encoding: utf-8
|
|
|
|
require 'functional/helper'
|
|
|
|
describe 'inspec supermakert' do
|
|
include FunctionalHelper
|
|
|
|
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
|
|
out = inspec('supermarket exec dev-sec/ssh-baseline')
|
|
out.exit_status.wont_equal 1
|
|
out.stderr.must_equal ''
|
|
out.stdout.must_include 'Profile Summary'
|
|
out.stdout.must_include 'Test Summary'
|
|
end
|
|
end
|