Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix java install on windows in acceptance #187

Conversation

tphoney
Copy link
Contributor

@tphoney tphoney commented Jul 11, 2017

No description provided.

This commit fixes installing java on windows in the acceptance tests
by moving the installation logic to the spec_helper_acceptance so that
java is always installed when needed, and removes basic_spec.rb because
having the installation logic in one spec file means all spec files must
be run in order to have a properly setup environment.

This commit also migrates the java install from using windows_java to
puppetlabs-chocolatey. This follows a standard at Puppet to use chocolatey
in acceptance to setup an environment.
This commit fixes the path to java because the jdk package installed
by chocolatey uses 'C:\Program Files' instead of a custom path. The spaces
cause errors, so we properly quote them in order for the command to work.
This commit refactors OS specific parameters to be more maintainable.  Instead
if have many case statements, a common target and target_dir is used.
@glennsarti glennsarti force-pushed the jpogran-MODULES-5117-fix-java-install-on-windows-in-acceptance branch from b5b6b01 to 1302a80 Compare July 11, 2017 21:55
@glennsarti
Copy link
Contributor

This supercedes #185

@glennsarti glennsarti merged commit f99e471 into puppetlabs:master Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants