test: centralise all suites into default suite

Modify the `default` suite to use the `saltmajorversion` InSpec input
rather than the `version` variable in `pkgs_spec.rb`.
This commit is contained in:
Imran Iqbal committed 2021-11-17 21:53:19 +00:00
1 parent 98c9dbfcfb
commit b475e24638
81 files changed
+2 -5277

No files matched your search

@@ -0,0 +1,23 @@
# 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
control 'salt services' do
title 'should be running'
services.each do |p|
describe service(p) do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
end
end