91f759f953
BREAKING CHANGE: changed all state names and ids
24 lines
526 B
Ruby
24 lines
526 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Prepare platform "finger"
|
|
platform_finger = system.platform[:finger].split('.').first.to_s
|
|
|
|
control 'nsd.service.running' do
|
|
title 'The service should be installed, enabled and running'
|
|
|
|
# Overide by `platform_finger`
|
|
service_name =
|
|
case platform_finger
|
|
when 'centos-6', 'amazonlinux-1'
|
|
'crond'
|
|
else
|
|
'systemd-journald'
|
|
end
|
|
|
|
describe service(service_name) do
|
|
it { should be_installed }
|
|
it { should be_enabled }
|
|
it { should be_running }
|
|
end
|
|
end
|