Issue #15569 has been updated by Josh Cooper.

Branch set to https://github.com/puppetlabs/puppet/pull/1015

The augeas spec failure is fixed here: 
<https://github.com/puppetlabs/puppet/pull/1015>
----------------------------------------
Bug #15569: Order dependent spec failures
https://projects.puppetlabs.com/issues/15569#change-68634

Author: Josh Cooper
Status: Accepted
Priority: Normal
Assignee: 
Category: testing
Target version: 
Affected Puppet version: 2.7.18
Keywords: 
Branch: https://github.com/puppetlabs/puppet/pull/1015


This ticket is to track order dependent spec failures:

<pre>
~/work/puppet [2.7.x] $ rspec spec/integration/application/apply_spec.rb 
spec/unit/indirector/resource_type/parser_spec.rb
Failures:

  1) Puppet::Indirector::ResourceType::Parser when finding should return nil if 
no type can be found
     Failure/Error: @terminus.find(@request).should be_nil
       expected: nil
            got: #&lt;Puppet::Resource::Type:0x103eac528 @line=1, @arguments={},
@file="/Users/josh/work/puppet/foo.pp", @type=:hostclass,
@resource_type_collection=TypeCollection{:hostclasses=>["", "foo"], 
:definitions=>[], :nodes=>[]},
@module_name=nil, @namespace="foo", @name="foo", @doc=""&gt;
     # ./spec/unit/indirector/resource_type/parser_spec.rb:47
</pre>

Actually the above fails when just running the parser_spec:

<pre>
0 ~/work/puppet [2.7.x] $ rspec 
spec/unit/indirector/resource_type/parser_spec.rb
...F.........

Failures:

  1) Puppet::Indirector::ResourceType::Parser when finding should return nil if 
no type can be found
     Failure/Error: @terminus.find(@request).should be_nil
       expected: nil
            got: #&lt;Puppet::Resource::Type:0x102057460 @namespace="foo", 
@module_name=nil, @type=:hostclass, @line=1, 
@resource_type_collection=TypeCollection{:definitions=>[], :hostclasses=>["", 
"foo"], :nodes=>[]}, @file="/Users/josh/work/puppet/foo.pp", @doc="", 
@name="foo", @arguments={}&gt;
     # ./spec/unit/indirector/resource_type/parser_spec.rb:47

</pre>

This is just a failure if the augeas feature is installed, (it fails in 3.x, 
but not 2.7.x):

<pre>
0 ~/work/puppet [3.x] $ rspec ./spec/unit/provider/augeas/augeas_spec.rb
................................................................F........

Failures:

  1) Puppet::Type::Augeas::ProviderAugeas augeas lib initialisation should load 
one file if incl/lens used
     Failure/Error: aug = @provider.open_augeas
     Mocha::ExpectationError:
       unexpected invocation: 
#&lt;Puppet::Type::Augeas::ProviderAugeas:0x10222f8f0&gt;.print_load_errors(:warning
 => false)
       unsatisfied expectations:
       - expected exactly once, not yet invoked: 
#&lt;Puppet::Type::Augeas::ProviderAugeas:0x10222f8f0&gt;.print_load_errors(:warning
 => true)
       satisfied expectations:
       - allowed any number of times, not yet invoked: 
Signal.trap(any_parameters)
     # ./lib/puppet/provider/augeas/augeas.rb:187:in `open_augeas'
     # ./spec/unit/provider/augeas/augeas_spec.rb:673
</pre>

Another order dependent failure (fails in 3.x, but not 2.7.x):

<pre>
0 ~/work/puppet [3.x] $ rspec spec/integration/reference/providers_spec.rb 
spec/unit/application/face_base_spec.rb 
.F............................................*...

Failures:

  1) #<Puppet::Util::Reference:0x101929328> should be able to be rendered as 
markdown
     Failure/Error: reference.to_markdown
     NoMethodError:
       undefined method `args' for 
#&lt;Puppet::Util::CommandLine:0x103821c08&gt;
     # ./lib/puppet/reference/providers.rb:12:in `generate'
     # ./lib/puppet/util/reference.rb:118:in `to_markdown'
     # ./spec/integration/reference/providers_spec.rb:14
</pre>





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