]> gitweb.fluxo.info Git - puppet-mailalias_core.git/commitdiff
(maint) Ensure module is installed for testing
authorMelissa Stone <melissa@puppet.com>
Mon, 16 Jul 2018 23:02:39 +0000 (16:02 -0700)
committerMelissa Stone <melissa@puppet.com>
Mon, 16 Jul 2018 23:30:15 +0000 (16:30 -0700)
`hosts_as` takes a role type, not an array of hosts. Unfortunately,
`install_module_on` only takes one host as an argument. We were lucky
that `hosts_as('default')` was returning only one host, but we should be
explicitly installing this on each host individually.

spec/spec_helper_acceptance.rb

index 0adde24ac09e7a0c5aa49cb76e2530431847a290..e7060a0909e3481bf9a094c21d7f826edf005b9b 100644 (file)
@@ -17,7 +17,9 @@ RSpec.configure do |c|
   c.before :suite do
     unless ENV['BEAKER_provision'] == 'no'
       run_puppet_install_helper
-      install_module_on(hosts_as(hosts))
+      hosts.each do |host|
+        install_module_on(host)
+      end
       install_module_dependencies_on(hosts)
     end
   end