bind-formula/test/integration/default/controls/service_spec.rb

19 lines
326 B
Ruby
Raw Normal View History

case os[:name]
when 'arch','redhat', 'centos', 'fedora'
service = 'named'
2019-05-21 22:22:00 +02:00
when 'suse', 'opensuse'
service = 'named'
when 'debian', 'ubuntu'
service = 'bind9'
end
control 'Bind9 service' do
title 'should be running'
describe service(service) do
2019-05-21 22:22:00 +02:00
# it { should be_enabled }
it { should be_running }
end
end