-
Notifications
You must be signed in to change notification settings - Fork 582
Add Stdlib::Ensure::Package type #1281
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
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.
this looks good. Could you add a unit test for this change? Thanks
@jordanbreen28 Not yet, I wanted to copy the tests for the similar types in there, but there weren't any yet, I will try and get to that this week and push accordingly, thanks! |
@arjenz Thanks! Appreciate your work on this one. |
@arjenz Hey, just checking in on whether you've made any progress 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.
I can see the benefits of explicit for documentation purposes. You could write a small test (https://rspec-puppet.com/documentation/type_aliases/) to make sure it's valid, but 👍 to this.
as @ekohl suggested, could you add a couple of test cases to ensure this new type works consistently in the future? After which we would be happy to merge. Thanks |
Having some issues on M1 laptop getting the tests to run (and unfortunately the other types don't have similar tests yet), I'll try and create a test. |
There are a bunch of them: https://github.com/puppetlabs/puppetlabs-stdlib/tree/main/spec/type_aliases |
887f1b3
to
43f72a8
Compare
@ekohl |
2cb75c9
to
558a978
Compare
0147406
to
325e5fe
Compare
I don't think any of the failing checks are related to my change |
Like the ones for file, service. Valid values taken from https://puppet.com/docs/puppet/7/types/package.html#package-attribute-ensure
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!
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.
LGTM
Thanks for your contribution! |
Like the ones for file, service.
Valid values taken from https://puppet.com/docs/puppet/7/types/package.html#package-attribute-ensure