inspec/test/functional/inspec_schema_test.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

23 lines
570 B
Ruby

require "functional/helper"
describe "inspec schema" do
include FunctionalHelper
before do
skip_windows!
end
describe "extracting the platforms schema export" do
it "can execute a platforms schema command" do
out = inspec("schema platforms")
out.stderr.must_equal ""
out.exit_status.must_equal 0
data = JSON.parse(out.stdout)
data.class.must_equal Array
data.size.must_be(:>, 1)
data[0]["name"].must_equal "aix"
families = %w{aix unix os}
data[0]["families"].must_equal families
end
end
end