0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-30 23:55:23 +01:00
salt-formula/test/integration/default/controls/pkgs_spec.rb
Eric Cook 2881fdd811 feat(freebsd): update package names for Python 3.9
% print $OSTYPE;pkg search 'py39-(pygit2|gitpython|dulwich|salt)'
freebsd13.0
py39-dulwich-0.19.16           Python implementation of the Git file formats and protocols
py39-gitpython-3.1.27          Python Git Library
py39-pygit2-1.8.0              Python bindings for libgit2
py39-salt-3004.2               Distributed remote execution and configuration management system
2022-07-20 11:18:52 -04:00

27 lines
477 B
Ruby

# frozen_string_literal: true
pkgs =
case system.platform[:name]
when 'arch'
%w[salt]
when /bsd$/
%w[py39-salt]
when 'windows'
['Salt Minion']
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