The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #3418

Sporadic test failures in spec/unit/type/package.rb

Added by Markus Roberts over 4 years ago. Updated over 3 years ago.

Status:InvestigatingStart date:03/24/2010
Priority:LowDue date:
Assignee:-% Done:

0%

Category:testing
Target version:-
Affected Puppet version:testing Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

I building the testing branch I occasionally see the following errors running rake spec which go away when running spec/unit/type/package.rb directly or when unrelated changes are made (e.g. spacing changes in other spec files).

2)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be purged should do nothing if it is :purged'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.properties(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:121:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

3)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be purged should purge if it is absent'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.purge(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:128:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

4)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be purged should purge if it is installed'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.purge(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:128:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

5)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be purged should purge if it is present'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.purge(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:128:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

6)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be purged should purge if it is latest'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.purge(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:128:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

7)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be absent should do nothing if it is purged'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.properties(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:141:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

8)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be absent should do nothing if it is absent'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.properties(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:141:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

9)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be absent should uninstall if it is installed'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.uninstall(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:149:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

10)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be absent should uninstall if it is present'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.uninstall(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:149:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

11)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be absent should uninstall if it is latest'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.uninstall(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:149:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

12)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be present should do nothing if it is present'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.properties(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:162:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

13)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be present should do nothing if it is latest'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.properties(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:162:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

14)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be present should do nothing if it is 1.0'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.properties(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:162:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

15)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be present should install if it is purged'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.install(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:170:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

16)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be present should install if it is absent'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.install(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, not yet invoked: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:170:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

17)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be latest should upgrade if it is purged'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.update(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:184:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

18)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be latest should upgrade if it is absent'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.update(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:184:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

19)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be latest should upgrade if the current version is not equal to the latest version'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.update(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.latest(any_parameters)
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:192:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

20)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be a specific version should install if it is purged'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.install(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:219:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

21)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be a specific version should install if it is absent'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.install(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:219:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

22)
Mocha::ExpectationError in 'Puppet::Type::Package Puppet::Type::Package when it should be a specific version should install if the current version is not equal to the specified version'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #.install(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #.properties(any_parameters)
- allowed any number of times, not yet invoked: #.clear(any_parameters)
- allowed any number of times, already invoked once: #.satisfies?(any_parameters)
- allowed any number of times, not yet invoked: #.name(any_parameters)
- allowed any number of times, already invoked 6 times: #.class(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.instances(any_parameters)
- allowed any number of times, already invoked once: Puppet::Type::Package::ProviderPkgdmg.new(any_parameters)
./spec/unit/type/package.rb:232:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

History

#1 Updated by Jesse Wolfe over 4 years ago

  • Target version changed from 2.6.0 to 52

#2 Updated by James Turnbull over 3 years ago

  • Target version deleted (52)

Also available in: Atom PDF