Bug #2951
5 closely related errors in spec/unit/util/selinux.rb under OS X
| Status: | Closed | Start: | 12/18/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | testing | |||
| Target version: | 0.25.2 | |||
| Affected version: | 0.25.1 | Branch: | http://github.com/MarkusQ/puppet/tree/ticket/0.25.x/2951 | |
| Keywords: | ||||
| Votes: | 0 |
Description
1)
NoMethodError in ‘Puppet::Util::SELinux set_selinux_context should use lsetfilecon to set a context’
undefined method close' for nil:NilClass
./spec/unit/util/selinux.rb:206:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:inrun'
/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:inrun'
2)
NoMethodError in ‘Puppet::Util::SELinux set_selinux_context should use lsetfilecon to set user_u user context’
undefined method close' for nil:NilClass
./spec/unit/util/selinux.rb:213:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:inrun'
/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:inrun'
3)
NoMethodError in ‘Puppet::Util::SELinux set_selinux_context should use lsetfilecon to set role_r role context’
undefined method close' for nil:NilClass
./spec/unit/util/selinux.rb:220:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:inrun'
/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:inrun'
4)
NoMethodError in ‘Puppet::Util::SELinux set_selinux_context should use lsetfilecon to set type_t type context’
undefined method close' for nil:NilClass
./spec/unit/util/selinux.rb:227:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:inrun'
/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:inrun'
5)
NoMethodError in ‘Puppet::Util::SELinux set_selinux_context should use lsetfilecon to set s0:c3,c5 range context’
undefined method close' for nil:NilClass
./spec/unit/util/selinux.rb:234:
/Users/markus/projects/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:inrun'
/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:inrun'
Finished in 0.091929 seconds
41 examples, 5 failures
These are caused by a loophole in the patch for #1963 for the case where /proc/mounts does not exist.
History
Updated by Markus Roberts 7 months ago
- Status changed from Accepted to Ready for Testing
- Branch set to http://github.com/MarkusQ/puppet/tree/ticket/0.25.x/2951
Updated by Markus Roberts 7 months ago
- Assigned to deleted (
Markus Roberts)
Updated by James Turnbull 7 months ago
- Category set to testing
- Status changed from Ready for Testing to Closed
Pushed in commit:“d11c7503cc816e98b5deb890b49a7e8c47173e1b” in branch 0.25.x