Issue #3791 has been updated by Rein Henrichs.
I get a spec failure running specs in your branch
(lak/tickets/master/3791-actually_use_environment):
1)
Mocha::ExpectationError in 'Puppet::Rails::Host when converting a Puppet::Node
instance into a Rails instance should copy the environment from the Puppet
instance'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked:
#<Mock:host>.environment=('production')
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Rails::Host(name:
string, environment: string, ip: string).find_by_name('foo')
- allowed any number of times, already invoked twice: Puppet::Rails::Host(name:
string, environment: string, ip: string).columns(any_parameters)
- allowed any number of times, already invoked once:
#<Mock:host>.ip=(any_parameters)
- allowed any number of times, already invoked once:
#<Mock:host>.environment=(any_parameters)
./spec/unit/rails/host.rb:43:
/Users/reinh/code/puppetlabs/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
`run'
/Users/reinh/code/puppetlabs/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
`each'
/Users/reinh/code/puppetlabs/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
`run'
----------------------------------------
Bug #3791: Default server environment is always used in 'master'
http://projects.puppetlabs.com/issues/3791
Author: Luke Kanies
Status: Ready for Testing
Priority: Urgent
Assigned to: Luke Kanies
Category: node
Target version: Rowlf
Affected version: 0.25.4
Keywords:
Branch: luke/tickets/master/3791-actually_use_environment
In testing, I found that the server's default environment is always used when
compiling catalogs. It's a result of us no longer lazy-evaluating environments
in new nodes.
I've got a fix in place already.
--
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.