mirror of
https://github.com/inspec/inspec
synced 2024-12-18 09:03:12 +00:00
07dc5e3192
3 files left to go, and they're behaving oddly so I'm leaving them out in this pass. Looks like 21 deprecations left. Signed-off-by: Ryan Davis <zenspider@chef.io>
22 lines
546 B
Ruby
22 lines
546 B
Ruby
require "functional/helper"
|
|
|
|
describe "inspec schema" do
|
|
include FunctionalHelper
|
|
|
|
describe "extracting the platforms schema export" do
|
|
it "can execute a platforms schema command" do
|
|
out = inspec("schema platforms")
|
|
|
|
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
|
|
|
|
_(out.stderr).must_equal ""
|
|
|
|
assert_exit_code 0, out
|
|
end
|
|
end
|
|
end
|