More JSON factset tests#363
Conversation
- Test for known IP address - Test out json-schema testing
|
Copied from Slack:
|
| require 'pathname' | ||
| require 'json_schemer' | ||
|
|
||
| schema = { |
There was a problem hiding this comment.
Did you ask the facter devs if they provide any schema?
There was a problem hiding this comment.
I am not really concerned about the validity of the schema overall, since most of them were generated by Facter (hopefully not modified by hand). I am looking for a way to enforce other changes that wouldn't be part of a facter json schema, for example, IP address always being the same, blanked out UUID values, etc. that would help make creating tests with factsets easier.
There was a problem hiding this comment.
ah yes, makes sense. I also asked for a schema, so we can properly validate factsets: puppetlabs/facter#2730
This is a draft right now to experiment with various methods of factset normalization and validation