diff --git a/spec/classes/selinux_restorecond_spec.rb b/spec/classes/selinux_restorecond_spec.rb index 59c6c0a6..0887e411 100644 --- a/spec/classes/selinux_restorecond_spec.rb +++ b/spec/classes/selinux_restorecond_spec.rb @@ -3,6 +3,7 @@ describe 'selinux::restorecond' do include_context 'RedHat 7' + it { should contain_class('selinux::restorecond') } it { should contain_class('selinux::restorecond::config') } it { should contain_class('selinux::restorecond::service') } end diff --git a/spec/classes/selinux_spec.rb b/spec/classes/selinux_spec.rb index 61020bd9..c07d84e3 100644 --- a/spec/classes/selinux_spec.rb +++ b/spec/classes/selinux_spec.rb @@ -13,6 +13,7 @@ it { should contain_class('selinux').without_type } it { should contain_class('selinux::package') } it { should contain_class('selinux::config') } + it { should contain_class('selinux::params') } end end end diff --git a/spec/defines/selinux_module_spec.rb b/spec/defines/selinux_module_spec.rb index cc189c67..79a29df6 100644 --- a/spec/defines/selinux_module_spec.rb +++ b/spec/defines/selinux_module_spec.rb @@ -14,6 +14,8 @@ it do should contain_file('/usr/share/selinux/local_mymodule.te').that_notifies('Exec[/usr/share/selinux/local_mymodule.pp]') + should contain_exec('/usr/share/selinux/local_mymodule.pp').with(command: 'make -f /usr/share/selinux/devel/Makefile local_mymodule.pp') + should contain_selmodule('mymodule').with_ensure('present') end end # context