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

Param validation #83

Merged
merged 10 commits into from
Oct 23, 2013
Merged

Param validation #83

merged 10 commits into from
Oct 23, 2013

Conversation

jhoblitt
Copy link
Contributor

This changeset adds validation of all concat and concat::fragment parameters. In addition, the dead gnu param is removed from concat and the warn param to concat::fragment has been split into warn and warn_message. concat::setup is now considered a private class and directly including it into the manifest will cause a fail().

It also adds fairly comprehensive rspec-puppet tests for the entire module. There are several pieces of logic that are suspect but the tests were written to model the present behaviour, even if that isn't ideal. Test coverage for the facts is notably absent as is a cleanup of the documentation.

@apenney
Copy link

apenney commented Oct 23, 2013

Travis failed, and without even looking further I know it means there's a trailing , - the most annoying ruby 1.8 thing in the world :( Any chance you can slice it off so travis is happy?

@jhoblitt
Copy link
Contributor Author

Looks like 1.8.7 is unhappy about default values in block params... fixing it.

@jhoblitt
Copy link
Contributor Author

I manually tested with ruby 1.8.7 / puppet 2.7.1 (seems 2.7.0 isn't available as a gem). In addition to the default values on block params there was a trailing comma on a define declaration. :)

apenney pushed a commit that referenced this pull request Oct 23, 2013
@apenney apenney merged commit 94cbeca into puppetlabs:master Oct 23, 2013
@apenney
Copy link

apenney commented Oct 23, 2013

Boom!

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