cookbook-apt-zabbix/test/integration/debian/serverspec/debian_spec.rb

24 lines
708 B
Ruby
Raw Normal View History

2016-12-13 11:01:57 -05:00
require 'spec_helper'
describe 'apt-zabbix::default' do
### REPOSITORIES
#
describe 'Repositories should be installed:' do
describe file('/etc/apt/sources.list.d') do
it { should be_directory }
it { should be_mode 755 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
describe file('/etc/apt/sources.list.d/zabbix.list') do
it { should exist }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its(:content) { shoult match('deb ... jessie contrib non-free main') }
end
end
end