Skip to content

Commit

Permalink
additional tests to get coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
maage committed Sep 1, 2016
1 parent 093485e commit 3820f65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/classes/selinux_restorecond_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions spec/classes/selinux_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions spec/defines/selinux_module_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3820f65

Please sign in to comment.