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

Bug #2335

SELinux tests broken

Added by James Turnbull almost 5 years ago. Updated over 2 years ago.

Status:ClosedStart date:06/10/2009
Priority:NormalDue date:
Assignee:Sean Millichamp% Done:

0%

Category:SELinux
Target version:-
Affected Puppet version:0.24.8 Branch:
Keywords:

We've Moved!

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

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

There are some freshly broken SELinux tests:

7)
Mocha::ExpectationError in 'Puppet::Type::Selboolean when manipulating booleans should be able to access :name'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selboolean.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:31:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

8)
Mocha::ExpectationError in 'Puppet::Type::Selboolean when manipulating booleans should be able to access :value'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selboolean.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:31:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

9)
Mocha::ExpectationError in 'Puppet::Type::Selboolean when manipulating booleans should set :value to off'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selboolean.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:31:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

10)
Mocha::ExpectationError in 'Puppet::Type::Selboolean when manipulating booleans should be able to access :persistent'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selboolean.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:31:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

11)
Mocha::ExpectationError in 'Puppet::Type::Selboolean when manipulating booleans should set :persistent to false'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selboolean.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:31:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

12)
Mocha::ExpectationError in 'Puppet::Type::Selmodule when checking policy modules should be able to access :name'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selmodule.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:60:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

13)
Mocha::ExpectationError in 'Puppet::Type::Selmodule when checking policy modules should be able to access :selmoduledir'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selmodule.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:60:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

14)
Mocha::ExpectationError in 'Puppet::Type::Selmodule when checking policy modules should be able to access :selmodulepath'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selmodule.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:60:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

15)
Mocha::ExpectationError in 'Puppet::Type::Selmodule when checking policy modules should be able to access :syncversion'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selmodule.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:60:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

16)
Mocha::ExpectationError in 'Puppet::Type::Selmodule when checking policy modules should set the syncversion value to false'
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: Puppet::Type::Selmodule.defaultprovider(any_parameters)
./spec/unit/other/selinux.rb:60:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

History

#1 Updated by James Turnbull almost 5 years ago

  • Assignee set to Sean Millichamp

Sean – not sure if you’re able to look at these? Let me know.

#2 Updated by Sean Millichamp almost 5 years ago

I can try to take a look at this, although I’m about 6 months and 4,800 mailing list posts behind on current puppet happenings :(. Any idea what might have changed to cause these tests to start failing?

#3 Updated by James Turnbull almost 5 years ago

I am honestly not sure what’s changed. Luke??? defaultprovider changed somewhere?

#4 Updated by Luke Kanies almost 5 years ago

These tests should just s/expects/stubs/ in the before blocks — you should never have ‘expects’ in before blocks.

#5 Updated by James Turnbull over 2 years ago

  • Status changed from Accepted to Closed

Also available in: Atom PDF