Skip to content

Commit

Permalink
add selinux spec test for web
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Apr 18, 2016
1 parent 5db9231 commit a38610b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/classes/web_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ def package_provider_for_gems

describe 'with default settings' do
it { should contain_file('/etc/zabbix/web').with_ensure('directory') }
it { should_not contain_selboolean('httpd_can_connect_zabbix') }
end

describe 'with enabled selinux' do
let :facts do
super().merge(selinux_config_mode: 'enforcing')
end
it { should contain_selboolean('httpd_can_connect_zabbix').with('value' => 'on', 'persistent' => true) }
end

describe 'with database_type as postgresql' do
Expand Down

0 comments on commit a38610b

Please sign in to comment.