ansible-role-keepalived/test/integration/default/serverspec/default_spec.rb
2019-04-12 18:29:11 +02:00

26 lines
593 B
Ruby

require 'serverspec'
set :backend, :exec
puts
puts '================================'
puts %x(ansible --version)
puts '================================'
describe package('keepalived') do
it { should be_installed }
end
describe file('/etc/keepalived/keepalived.conf') do
it { should be_file }
it { should be_mode 600 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
it { should contain 'priority 200' }
it { should contain 'interval 10' }
end
describe service('keepalived') do
it { should be_enabled }
it { should be_running.under('systemd') }
end