Skip to content
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

Finish conversion of postgresql_password function #1161

Conversation

alexjfisher
Copy link
Collaborator

In #1129 the 3
functions from this module were ported to the modern function API and
namespaced. None of the boilerplate was fixed up, tests weren't
updated, documentation wasn't updated etc.

This commit finishes the work for the postgresql_password function.

  • Remove old API puppet/parser/functions version.
  • Create a replacement non-namespaced, (but deprecated), new API shim
    that calls the namespaced version.
  • Replace argument validation in the function code with data-type based
    validation for the individual function parameters.
  • Update the README and REFERENCE.md files.
  • Test both shim and namespaced version of the function.

In puppetlabs#1129 the 3
functions from this module were ported to the modern function API and
namespaced.  None of the boilerplate was fixed up, tests weren't
updated, documentation wasn't updated etc.

This commit finishes the work for the `postgresql_password` function.

* Remove old API `puppet/parser/functions` version.
* Create a replacement non-namespaced, (but deprecated), new API shim
that calls the namespaced version.
* Replace argument validation in the function code with data-type based
validation for the individual function parameters.
* Update the README and REFERENCE.md files.
* Test both shim and namespaced version of the function.
@alexjfisher alexjfisher requested a review from a team as a code owner April 13, 2020 11:10
@alexjfisher
Copy link
Collaborator Author

This PR is very similar to the one I did for inifile. puppetlabs/puppetlabs-inifile#387

Time permitting, I aim to tackle the other 2 functions from this module in separate PR(s).

@daianamezdrea
Copy link
Contributor

Hi @alexjfisher, this looks good to me! Thank you!

@daianamezdrea daianamezdrea merged commit 368b48d into puppetlabs:master Apr 22, 2020
@alexjfisher alexjfisher deleted the finish_postgresql_password_conversion branch April 22, 2020 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants