-
Notifications
You must be signed in to change notification settings - Fork 614
Write facts as shared examples, move to Debian 11 and follow rspec-puppet path conventions #1311
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
Conversation
f4d1157
to
5c56fd0
Compare
Hi @ekohl, can you rebase your PR please ? Thank you ! |
5c56fd0
to
dbf628a
Compare
Rebased |
9856ccf
to
a893b9a
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.
looks good to me. happy to merge if tests pass
Looks like lint failed, but I wonder why it didn't fail before since I'm not changing that. |
It doesn't accept nil for an optional parameter, it must be a boolean.
rspec-puppet places all classes in spec/classes and automatically applies the correct type. The same is true for defines in spec/defines.
e3f2c51
to
f4c53d0
Compare
Marking it as draft since I'm abusing CI to see if my code passes because of https://tickets.puppetlabs.com/browse/MODULES-11161. If the tests are green, it should be ready. |
Previously there was a lot of duplication between facts. This now stores them as shared examples in spec_helper_local.rb and also extracts them from rspec-puppet-facts where possible. Debian 8 isn't in metadata.json anymore which meant it was testing for an unsupported OS by default. It's now changed to Debian 11.
f4c53d0
to
f4a42a7
Compare
This is now failing on #1313 (comment). I'm hoping @fe80 can shed some light on this. |
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.
looks good to me. the tests fail also on main, so I think merging it is fine.
rspec-puppet places all classes in spec/classes and automatically applies the correct type. The same is true for defines in spec/defines.
Previously there was a lot of duplication between facts. This now stores them as shared examples in
spec_helper_local.rb
and also extracts them from rspec-puppet-facts where possible.Debian 8 isn't in metadata.json anymore which meant it was testing for an unsupported OS by default. It's now changed to Debian 11.