2
0
salt-formula/test/integration/v3002-py3/controls/pkgs_spec.rb
Imran Iqbal a30f124485
fix(freebsd): fix package names [skip ci]
Resolves issues introduced in 24ebbb4e0c.
2021-04-04 15:41:53 +01:00

27 lines
439 B
Ruby

# frozen_string_literal: true
pkgs =
case system.platform[:name]
when 'arch'
%w[salt]
when /bsd$/
%w[py37-salt]
when 'windows'
%w[Salt\ Minion]
else
%w[salt-master salt-minion]
end
control 'salt packages' do
title 'should be installed'
version = '3002'
pkgs.each do |p|
describe package(p) do
it { should be_installed }
its('version') { should match(/^#{version}/) }
end
end
end