inspec/test/functional/inspec_check_test.rb
Christoph Hartmann 47eabbb221 add functional tests for inspec check (#2077)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-08-15 20:41:24 +02:00

16 lines
411 B
Ruby

# encoding: utf-8
# author: Dominik Richter
# author: Christoph Hartmann
require 'functional/helper'
require 'jsonschema'
describe 'inspec check with json formatter' do
include FunctionalHelper
it 'can execute a simple file and validate the json schema' do
out = inspec('check ' + integration_test_path + ' --format json')
out.exit_status.must_equal 0
data = JSON.parse(out.stdout)
end
end