Report abuse

1)
Mocha::ExpectationError in 'Puppet::Type::Selboolean::ProviderGetsetsebool should call execpipe when updating boolean setting'
#.execpipe('  foo off') - expected calls: 0, actual calls: 1
Similar expectations:
#.execpipe('/usr/sbin/setsebool  foo off')
(eval):1:in `execpipe'
/Users/luke/git/puppet/spec/../lib/puppet/provider/selboolean/getsetsebool.rb:39:in `execoutput'
/Users/luke/git/puppet/spec/../lib/puppet/provider/selboolean/getsetsebool.rb:28:in `value='
./spec/unit/provider/selboolean.rb:26:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

2)
Mocha::ExpectationError in 'Puppet::Type::Selboolean::ProviderGetsetsebool should call execpipe with -P when updating persistent boolean setting'
#.execpipe(' -P foo off') - expected calls: 0, actual calls: 1
Similar expectations:
#.execpipe('/usr/sbin/setsebool -P foo off')
(eval):1:in `execpipe'
/Users/luke/git/puppet/spec/../lib/puppet/provider/selboolean/getsetsebool.rb:39:in `execoutput'
/Users/luke/git/puppet/spec/../lib/puppet/provider/selboolean/getsetsebool.rb:28:in `value='
./spec/unit/provider/selboolean.rb:32:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

3)
Puppet::DevError in 'Puppet::Type::Selboolean when validating values should support :on as a value to :value'
Could not find a default provider for selboolean
/Users/luke/git/puppet/lib/puppet/type.rb:1737:in `defaultprovider'
./spec/unit/type/selboolean.rb:19:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

4)
Puppet::DevError in 'Puppet::Type::Selboolean when validating values should support :off as a value to :value'
Could not find a default provider for selboolean
/Users/luke/git/puppet/lib/puppet/type.rb:1737:in `defaultprovider'
./spec/unit/type/selboolean.rb:19:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

5)
Puppet::DevError in 'Puppet::Type::Selboolean when validating values should support :true as a value to :persistent'
Could not find a default provider for selboolean
/Users/luke/git/puppet/lib/puppet/type.rb:1737:in `defaultprovider'
./spec/unit/type/selboolean.rb:19:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

6)
Puppet::DevError in 'Puppet::Type::Selboolean when validating values should support :false as a value to :persistent'
Could not find a default provider for selboolean
/Users/luke/git/puppet/lib/puppet/type.rb:1737:in `defaultprovider'
./spec/unit/type/selboolean.rb:19:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

7)
Mocha::ExpectationError in 'Puppet::Type::Selmodule::ProviderSemodule exists? method should find a module if it is already loaded'
#.execpipe(' --list') - expected calls: 0, actual calls: 1
Similar expectations:
#.execpipe('/usr/sbin/semodule --list')
(eval):1:in `execpipe'
/Users/luke/git/puppet/spec/../lib/puppet/provider/selmodule/semodule.rb:25:in `exists?'
./spec/unit/provider/selmodule.rb:22:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

8)
Mocha::ExpectationError in 'Puppet::Type::Selmodule::ProviderSemodule exists? method should return nil if not loaded'
#.execpipe(' --list') - expected calls: 0, actual calls: 1
Similar expectations:
#.execpipe('/usr/sbin/semodule --list')
(eval):1:in `execpipe'
/Users/luke/git/puppet/spec/../lib/puppet/provider/selmodule/semodule.rb:25:in `exists?'
./spec/unit/provider/selmodule.rb:27:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'

9)
Mocha::ExpectationError in 'Puppet::Type::Selmodule::ProviderSemodule exists? method should return nil if no modules are loaded'
#.execpipe(' --list') - expected calls: 0, actual calls: 1
Similar expectations:
#.execpipe('/usr/sbin/semodule --list')
(eval):1:in `execpipe'
/Users/luke/git/puppet/spec/../lib/puppet/provider/selmodule/semodule.rb:25:in `exists?'
./spec/unit/provider/selmodule.rb:32:
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
/Users/luke/git/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'