2
0
salt-formula/test/integration/v3000-py2/controls/service_spec.rb

24 lines
421 B
Ruby
Raw Normal View History

2020-05-01 09:32:39 +02:00
# frozen_string_literal: true
services =
case system.platform[:family]
when 'bsd'
%w[salt_master salt_minion]
when 'windows'
%w[salt-minion]
else
%w[salt-master salt-minion]
end
2020-05-01 09:32:39 +02:00
control 'salt services' do
title 'should be running'
services.each do |p|
2020-05-01 09:32:39 +02:00
describe service(p) do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
end
end