bind-formula/test/integration/default/controls/pkgs_spec.rb

30 lines
482 B
Ruby
Raw Normal View History

# frozen_string_literal: true
case os[:name]
when 'arch'
os_packages = %w[
bind
bind-tools
dnssec-tools
]
when 'redhat', 'centos', 'fedora', 'amazon'
os_packages = %w[bind]
2019-05-21 22:22:00 +02:00
when 'suse', 'opensuse'
os_packages = %w[bind]
when 'debian', 'ubuntu'
os_packages = %w[
bind9
bind9utils
]
end
control 'Bind9 packages' do
title 'should be installed'
os_packages.each do |p|
describe package(p) do
it { should be_installed }
end
end
end