template-formula/test/integration/default/controls/services_spec.rb
Dafydd Jones 2e8ded6565 refactor: improve reusability using an unique keyword TEMPLATE
BREAKING CHANGE: changed all state names and ids
2019-12-04 23:47:41 +00:00

15 lines
350 B
Ruby

# frozen_string_literal: true
# Overide by OS
service_name = 'systemd-udevd'
service_name = 'crond' if (os[:name] == 'centos') && os[:release].start_with?('6')
control 'TEMPLATE service' do
impact 0.5
title 'should be running and enabled'
describe service(service_name) do
it { should be_enabled }
it { should be_running }
end
end