mirror of
https://github.com/inspec/inspec
synced 2024-12-30 06:53:22 +00:00
18ce4850f0
This should get windows tests running again? Hopefully? They're running SO slowly on my vagrant box that I'm just pushing for now. They're clean on the mac side. Signed-off-by: Ryan Davis <zenspider@chef.io>
22 lines
531 B
Ruby
22 lines
531 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
|