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

Add tests for windows and remove usage of OPENSSL to check MD5 as keytool has that capability #91

Merged
merged 4 commits into from Dec 23, 2014

Conversation

cyberious
Copy link
Contributor

Add acceptance tests for CHAIN certs.
Refactor to have less duplication using include_context

…tool has that capability

Conflicts:
	spec/acceptance/keystore_spec.rb
	spec/acceptance/private_key_spec.rb
	spec/acceptance/truststore_spec.rb
	spec/spec_helper_acceptance.rb
@cyberious
Copy link
Contributor Author

Do not merge yet!!! Some in flight changes now to remove openssl as a tool entirely


#install java if windows
if host['platform'] =~ /windows/i
on host, 'powershell.exe -command "(New-Object System.Net.Webclient).DownloadString(\'https://forge.puppetlabs.com\')"'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be handled as an acceptance setup step. The problem is the test forge instance is using a new CA cert that is issued by neither GeoTrust nor Gandi, see https://tickets.puppetlabs.com/browse/OPS-4555

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has nothing to do with test forge and is a problem against production Forge. It is apparently a known issue that you must first invoke a web request before so that the trust certs are updated in the Windows cert store.

-- 

Travis Fields

travis@puppetlabs.com 

Forge Module Engineer

On Mon, Oct 13, 2014 at 1:15 PM, Josh Cooper notifications@github.com
wrote:

   on host, "PATH=#{path} ruby -e \"#{opensslscript}\""

@justinstoller
Copy link
Member

If/when this is merged we will need to update CI to set the install source to the location referenced in QE-1369

@cyberious
Copy link
Contributor Author

Yes, I believe we will do this with an environment variable.

Travis Fields added 2 commits October 14, 2014 22:21
Conflicts:
	lib/puppet/provider/java_ks/keytool.rb
	spec/acceptance/keystore_spec.rb
	spec/acceptance/private_key_spec.rb
	spec/acceptance/truststore_spec.rb
	spec/spec_helper_acceptance.rb
@cyberious cyberious force-pushed the WindowsTesting branch 4 times, most recently from 3bf9861 to d6071d6 Compare December 23, 2014 00:42
@cyberious
Copy link
Contributor Author

@cmurphy @justinstoller what are your thoughts now. Justin I have added a JAVA_VERSION variable which expects a pattern of (MAJ)u(MINOR) which is how Java does it as well, we then split this, also there is a JAVA_DOWNLOAD_SOURCE env variable that will allow an alternate download site to eat less bandwidth and speed up the test.

end
# def command_openssl
# 'openssl'
# end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you delete this instead of commenting?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

hunner added a commit that referenced this pull request Dec 23, 2014
Add tests for windows and remove usage of OPENSSL to check MD5 as keytool has that capability
@hunner hunner merged commit 2699b6c into puppetlabs:master Dec 23, 2014
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

4 participants