Sha256: 0133fcb08f786fa67024b959938c9b4d444e7b555ed9854d3908fd7b602d7211
Contents?: true
Size: 551 Bytes
Versions: 52
Compression:
Stored size: 551 Bytes
Contents
require 'spec_helper' require 'facter/util/config' if !Facter::Util::Config.is_windows? require 'json' require 'json-schema' describe 'facter.json schema' do it 'should be valid' do # Read in both the json meta-schema and the facter schema JSON_META_SCHEMA = JSON.parse(File.read('schema/json-meta-schema.json')) FACTER_SCHEMA = JSON.parse(File.read('schema/facter.json')) # Validate that the facter schema itself is valid json JSON::Validator.validate!(JSON_META_SCHEMA, FACTER_SCHEMA) end end end
Version data entries
52 entries across 52 versions & 1 rubygems