Skip to content

Commit 5382b27

Browse files
committed
(maint) - JDK8 Test Setup Fix
Add '-y' to the install options to ensure jdk8 is installed and add an error catch for the future.
1 parent d1cca11 commit 5382b27

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/spec_helper_acceptance_local.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,11 @@ def create_cert_file(cert_name, contents)
160160
include chocolatey
161161
package { 'jdk8':
162162
ensure => '8.0.211',
163-
provider => 'chocolatey'
163+
provider => 'chocolatey',
164+
install_options => ['-y']
164165
}
165166
MANIFEST
166-
LitmusHelper.instance.apply_manifest(pp_one)
167+
LitmusHelper.instance.apply_manifest(pp_one, catch_failures: true)
167168
else
168169
LitmusHelper.instance.run_shell('puppet module install puppetlabs-java')
169170
pp_two = <<-MANIFEST

0 commit comments

Comments
 (0)