Skip to content

Commit

Permalink
Add zabbix_server.conf test for zabbix-3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yevtushenko committed Oct 13, 2016
1 parent 38bbae0 commit e8f8f06
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/classes/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,22 @@
}
end

it { should contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^TLSCAFile=/etc/zabbix/keys/zabbix-server.ca$} }
it { should contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^TLSCRLFile=/etc/zabbix/keys/zabbix-server.crl$} }
it { should contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^TLSCertFile=/etc/zabbix/keys/zabbix-server.crt$} }
it { should contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^TLSKeyFile=/etc/zabbix/keys/zabbix-server.key$} }
end
context 'with zabbix_server.conf and version 3.2' do
let :params do
{
tlscafile: '/etc/zabbix/keys/zabbix-server.ca',
tlscrlfile: '/etc/zabbix/keys/zabbix-server.crl',
tlscertfile: '/etc/zabbix/keys/zabbix-server.crt',
tlskeyfile: '/etc/zabbix/keys/zabbix-server.key',
zabbix_version: '3.2'
}
end

it { should contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^TLSCAFile=/etc/zabbix/keys/zabbix-server.ca$} }
it { should contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^TLSCRLFile=/etc/zabbix/keys/zabbix-server.crl$} }
it { should contain_file('/etc/zabbix/zabbix_server.conf').with_content %r{^TLSCertFile=/etc/zabbix/keys/zabbix-server.crt$} }
Expand Down

0 comments on commit e8f8f06

Please sign in to comment.