mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
47eabbb221
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
16 lines
411 B
Ruby
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
|