-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test classes/defines using facterdb data #622
Conversation
9210ece
to
95692a7
Compare
95692a7
to
9a8d07c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only thing i see is different OS test where added (on_supported_os.each)
@cbarria This is changing from test with an enormous set of centos 7 test of facts (copied from one of our production hosts) in |
The default fact set was copied from a live centos 7 instance. A few of these facts are incorrect for EL8, Debian, etc. As well as being largely unnecessary as part of the switch to using facterdb for test fact sets. Note that facterdb does not include facts from puppetlabs/stdlib and that `#add_custom_fact` will need to be used `spec/spec_helper.rb` to add os specific facts.
9a8d07c
to
9a0b596
Compare
great! thanks for the explanation, didn't knew what facterdb does, now i know why so much declarative code went away! 👍 |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the explanation on facterdb 👍
Host/role specs were converted to use facterdb in #610 .