Issue #13595 has been updated by Kelsey Hightower.

I think it would be awesome to have something like rspec-modules, where we can 
have a central place for module testing stuff. I don't have details right now, 
but I think this could be the right thing to do.
----------------------------------------
Bug #13595: initialize_everything_for_tests couples modules to specific Puppet 
versions
https://projects.puppetlabs.com/issues/13595#change-59474

Author: Eric Shamow
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Ran into this while attempting to run spec tests on the puppetlabs-ntp module 
from Git:

    Failure/Error: Unable to find matching line from backtrace
    NoMethodError:
    undefined method `initialize_everything_for_tests' for 
#<Puppet::Util::Settings:0xb71fb30c>

It turns out that :initialize_everything_for_tests was recently added to Puppet 
itself:

https://github.com/puppetlabs/puppet/commit/56c55d54474d97958f0f21e715237cf3f2117668

There are two problems here:

1) We have no current documentation or method of knowing which version of 
Puppet is required for a particular module.  We tie to specific module versions 
but not to Puppet itself - anyone trying to test the latest puppetlabs-ntp 
against the most recently cut version of Puppet or PE will fail.

2) We should be iterating on modules much more quickly than we are on core, but 
this means that modules need to be slightly more backward-compatible - we can't 
rely on the "latest and greatest" stuff in master or 2.7.x if modules are going 
to be updated frequently.  It might make more sense to move this type of 
function out to stdlib.

Commenting out the lines calling this function in the spec_helper.rb make the 
problem go away, but I suspect we're going to run into a lot more of these if 
we don't figure out an approach to it.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to