0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-19 01:39:28 +01:00
salt-formula/test/integration/default/controls/pkgs_spec.rb

27 lines
477 B
Ruby
Raw Normal View History

# frozen_string_literal: true
pkgs =
case system.platform[:name]
when 'arch'
%w[salt]
when /bsd$/
%w[py39-salt]
when 'windows'
['Salt Minion']
2022-05-17 08:39:37 +02:00
when 'mac_os_x'
%w[salt saltstack]
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