mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-23 18:54:07 +02:00
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:
81 files changed
+2
-5277
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
pkgs =
|
||||
case system.platform[:name]
|
||||
when 'arch'
|
||||
%w[salt]
|
||||
when /bsd$/
|
||||
%w[py38-salt]
|
||||
when 'windows'
|
||||
['Salt Minion']
|
||||
else
|
||||
%w[salt-master salt-minion]
|
||||
end
|
||||
|
||||
control 'salt packages' do
|
||||
title 'should be installed'
|
||||
|
||||
pkgs.each do |p|
|
||||
describe package(p) do
|
||||
it { should be_installed }
|
||||
its('version') { should match(/^#{input('saltmajorversion')}/) }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user