Skip to content

Commit

Permalink
spec_helper_acceptance: install epel and apt modules
Browse files Browse the repository at this point in the history
This replaces install_module_from_forge used in class_spec.rb
  • Loading branch information
kenyon committed Sep 17, 2023
1 parent c0806bc commit 509eb4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
case fact('os.family')
when 'RedHat'
pkg_cmd = 'yum info nodejs | grep "^From repo"'
install_module_from_forge('puppet-epel', '>= 3.0.0 < 6.0.0')
when 'Debian'
pkg_cmd = 'dpkg -s nodejs | grep "^Maintainer"'
install_module_from_forge('puppetlabs-apt', '>= 4.4.0 < 10.0.0')
end

context 'default parameters' do
Expand Down
5 changes: 4 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

require 'voxpupuli/acceptance/spec_helper_acceptance'

configure_beaker(modules: :metadata)
configure_beaker do |host|
install_puppet_module_via_pmt_on(host, 'puppet-epel')
install_puppet_module_via_pmt_on(host, 'puppetlabs-apt')
end

Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f }

0 comments on commit 509eb4b

Please sign in to comment.