Issue #3654 has been updated by Ben Hughes.

Jesse/James. May I close this please, or is this still an issue?
----------------------------------------
Bug #3654: Tests generate extra failures with valid site.pp
https://projects.puppetlabs.com/issues/3654

Author: Michael DeHaan
Status: Investigating
Priority: Normal
Assignee: Jesse Wolfe
Category: testing
Target version: 
Affected Puppet version: development
Keywords: rspec testing test
Branch: 


With /etc/puppet/manifests/site.pp as the following:

node default  {
}

master branch is:

commit e35e1427c0e529e3dc232930c7beca2656079b17
Date:   Thu Apr 22 17:04:31 2010 +1000

The following test errors are introduced that go away when the file is removed:

Puppet::Error in 'Puppet::DSL::ResourceTypeAPI should be able to create a 
definition'
Could not parse for environment production: unexpected invocation: 
Puppet::Resource::Type.new(:node, 
#<Puppet::Parser::AST::HostName:0x7fb1cf024288>, {:file => 
'/etc/puppet/manifests/site.pp', :line => 1, :doc => '', :parent => nil})
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Resource::Type.new()
 at /etc/puppet/manifests/site.pp:2
grammar.ra:686:in `_reduce_170'
./spec/unit/dsl/resource_type_api.rb:21:in `send'
./spec/unit/dsl/resource_type_api.rb:21:
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
 `run'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `each'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `run'

Puppet::Error in 'Puppet::DSL::ResourceTypeAPI should use the provided name 
when creating a definition'
Could not parse for environment production: unexpected invocation: 
Puppet::Resource::Type.new(:node, 
#<Puppet::Parser::AST::HostName:0x7fb1cf000ea0>, {:file => 
'/etc/puppet/manifests/site.pp', :line => 1, :doc => '', :parent => nil})
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Resource::Type.new()
 at /etc/puppet/manifests/site.pp:2
grammar.ra:686:in `_reduce_170'
./spec/unit/dsl/resource_type_api.rb:27:in `send'
./spec/unit/dsl/resource_type_api.rb:27:
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
 `run'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `each'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `run'

Puppet::Error in 'Puppet::DSL::ResourceTypeAPI should be able to create a node'
Could not parse for environment production: unexpected invocation: 
Puppet::Resource::Type.new(:node, 
#<Puppet::Parser::AST::HostName:0x7fb1cef73d70>, {:file => 
'/etc/puppet/manifests/site.pp', :line => 1, :doc => '', :parent => nil})
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Resource::Type.new()
 at /etc/puppet/manifests/site.pp:2
grammar.ra:686:in `_reduce_170'
./spec/unit/dsl/resource_type_api.rb:21:in `send'
./spec/unit/dsl/resource_type_api.rb:21:
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
 `run'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `each'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `run'

Puppet::Error in 'Puppet::DSL::ResourceTypeAPI should use the provided name 
when creating a node'
Could not parse for environment production: unexpected invocation: 
Puppet::Resource::Type.new(:node, 
#<Puppet::Parser::AST::HostName:0x7fb1cef43350>, {:file => 
'/etc/puppet/manifests/site.pp', :line => 1, :doc => '', :parent => nil})
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Resource::Type.new()
 at /etc/puppet/manifests/site.pp:2
grammar.ra:686:in `_reduce_170'
./spec/unit/dsl/resource_type_api.rb:27:in `send'
./spec/unit/dsl/resource_type_api.rb:27:
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
 `run'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `each'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `run'

Puppet::Error in 'Puppet::DSL::ResourceTypeAPI should pass in any provided 
options'
Could not parse for environment production: unexpected invocation: 
Puppet::Resource::Type.new(:node, 
#<Puppet::Parser::AST::HostName:0x7fb1cef29928>, {:file => 
'/etc/puppet/manifests/site.pp', :line => 1, :doc => '', :parent => nil})
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Resource::Type.new()
 at /etc/puppet/manifests/site.pp:2
grammar.ra:686:in `_reduce_170'
./spec/unit/dsl/resource_type_api.rb:34:in `send'
./spec/unit/dsl/resource_type_api.rb:34:
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
 `run'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `each'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `run'

Puppet::Error in 'Puppet::DSL::ResourceTypeAPI should be able to create a 
hostclass'
Could not parse for environment production: unexpected invocation: 
Puppet::Resource::Type.new(:node, 
#<Puppet::Parser::AST::HostName:0x7fb1ceeea598>, {:file => 
'/etc/puppet/manifests/site.pp', :line => 1, :doc => '', :parent => nil})
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Resource::Type.new()
 at /etc/puppet/manifests/site.pp:2
grammar.ra:686:in `_reduce_170'
./spec/unit/dsl/resource_type_api.rb:21:in `send'
./spec/unit/dsl/resource_type_api.rb:21:
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
 `run'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `each'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `run'

Puppet::Error in 'Puppet::DSL::ResourceTypeAPI should use the provided name 
when creating a hostclass'
Could not parse for environment production: unexpected invocation: 
Puppet::Resource::Type.new(:node, 
#<Puppet::Parser::AST::HostName:0x7fb1ceed4c48>, {:file => 
'/etc/puppet/manifests/site.pp', :line => 1, :doc => '', :parent => nil})
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Resource::Type.new()
 at /etc/puppet/manifests/site.pp:2
grammar.ra:686:in `_reduce_170'
./spec/unit/dsl/resource_type_api.rb:27:in `send'
./spec/unit/dsl/resource_type_api.rb:27:
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
 `run'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `each'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `run'

Puppet::Error in 'Puppet::DSL::ResourceTypeAPI should pass in any provided 
options'
Could not parse for environment production: unexpected invocation: 
Puppet::Resource::Type.new(:node, 
#<Puppet::Parser::AST::HostName:0x7fb1ceebd5c0>, {:file => 
'/etc/puppet/manifests/site.pp', :line => 1, :doc => '', :parent => nil})
satisfied expectations:
- expected exactly once, already invoked once: Puppet::Resource::Type.new()
 at /etc/puppet/manifests/site.pp:2
grammar.ra:686:in `_reduce_170'
./spec/unit/dsl/resource_type_api.rb:34:in `send'
./spec/unit/dsl/resource_type_api.rb:34:
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in
 `run'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `each'
/home/mpdehaan/code/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in
 `run'

The test code should ignore the user's configured site.pp and configuration 
files, but even if it didn't, this should presumably not be an error.




-- 
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