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

Support puppet v3 with future parser and puppet v4 #2

Merged
merged 2 commits into from
May 27, 2016

Conversation

ghoneycutt
Copy link
Owner

No description provided.

@ghoneycutt
Copy link
Owner Author

@Phil-Friderici Have you seen this recently? Failing with strict variables because of operatingsystemmajrelease. The version of Facter looks good.. problem with the travis container?

@Phil-Friderici
Copy link

The failing test [1] sets lsbmajdistrelease but needed [2] operatingsystemmajrelease is missing.

[1] https://github.com/ghoneycutt/puppet-module-timezone/blob/puppet3_future_and_puppet4/spec/classes/init_spec.rb#L90-L98
[2] https://github.com/ghoneycutt/puppet-module-timezone/blob/master/manifests/init.pp#L40-L43

Same is true for for the arc parameter tests.

Strict variables tests are not forgiving anymore like in the past. If a variable is used but not defined it fails since the introduction of Puppet 4.4. Before that, a variable called but not defined was handled like undef.

@ghoneycutt
Copy link
Owner Author

Thanks @Phil-Friderici !

@Phil-Friderici
Copy link

tests fails because of missmatching code vs specs

https://github.com/ghoneycutt/puppet-module-timezone/blob/master/manifests/init.pp#L43

Guess that you need to remove the colon from release variable here
https://github.com/ghoneycutt/puppet-module-timezone/blob/master/spec/classes/init_spec.rb#L21

never mind, now I see you did already :)

@Phil-Friderici
Copy link

@Phil-Friderici
Copy link

took over the work in #3

@ghoneycutt ghoneycutt merged commit 3c81783 into master May 27, 2016
@ghoneycutt ghoneycutt deleted the puppet3_future_and_puppet4 branch June 2, 2016 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants