Skip to content

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

Merged
merged 1 commit into from
Mar 9, 2023
Merged

Conversation

arjenz
Copy link
Contributor

@arjenz arjenz commented Oct 19, 2022

Like the ones for file, service.
Valid values taken from https://puppet.com/docs/puppet/7/types/package.html#package-attribute-ensure

@arjenz arjenz requested a review from a team as a code owner October 19, 2022 14:15
Copy link
Contributor

@GSPatton GSPatton left a 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
Copy link
Contributor

Hi @arjenz,
Did you get the chance to implement @GSPatton's requested changes above?
Thanks

@arjenz
Copy link
Contributor Author

arjenz commented Nov 14, 2022

@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!

@jordanbreen28
Copy link
Contributor

@arjenz Thanks! Appreciate your work on this one.

@david22swan
Copy link
Member

@arjenz Hey, just checking in on whether you've made any progress on this?

ekohl
ekohl previously approved these changes Feb 15, 2023
Copy link
Collaborator

@ekohl ekohl left a 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.

@GSPatton GSPatton closed this Feb 17, 2023
@GSPatton GSPatton reopened this Feb 17, 2023
@GSPatton
Copy link
Contributor

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

@arjenz
Copy link
Contributor Author

arjenz commented Feb 20, 2023

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.

@ekohl
Copy link
Collaborator

ekohl commented Feb 20, 2023

unfortunately the other types don't have similar tests yet

There are a bunch of them: https://github.com/puppetlabs/puppetlabs-stdlib/tree/main/spec/type_aliases

@arjenz arjenz force-pushed the package_type branch 2 times, most recently from 887f1b3 to 43f72a8 Compare February 20, 2023 18:48
@arjenz
Copy link
Contributor Author

arjenz commented Feb 20, 2023

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.

@ekohl
Done!

@arjenz arjenz force-pushed the package_type branch 2 times, most recently from 2cb75c9 to 558a978 Compare February 20, 2023 18:59
@arjenz arjenz force-pushed the package_type branch 2 times, most recently from 0147406 to 325e5fe Compare February 20, 2023 19:09
@arjenz arjenz requested a review from GSPatton February 20, 2023 19:27
@arjenz
Copy link
Contributor Author

arjenz commented Feb 20, 2023

I don't think any of the failing checks are related to my change

Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Contributor

@LukasAud LukasAud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LukasAud LukasAud merged commit a2dfdba into puppetlabs:main Mar 9, 2023
@LukasAud
Copy link
Contributor

LukasAud commented Mar 9, 2023

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants