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

fixed issue #19 SSL error with wget #27

Merged
merged 3 commits into from
Feb 1, 2015
Merged

Conversation

zivan
Copy link
Contributor

@zivan zivan commented Dec 24, 2014

This error was repeated in the same way
I suggest to add param nocheckcertificate -> wget::fetch to fix the error

@@ -1,7 +1,7 @@
Puppet selenium Module
======================

[![Build Status](https://travis-ci.org/jhoblitt/puppet-selenium.png)](https://travis-ci.org/jhoblitt/puppet-selenium)
[![Build Status](https://travis-ci.org/zivan/puppet-selenium.png)](https://travis-ci.org/zivan/puppet-selenium)
Copy link
Owner

Choose a reason for hiding this comment

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

Please remove this from the changeset.

@jhoblitt
Copy link
Owner

The CI failure seems to be due to new gem releases being incompatible with ruby 1.8.7, so I'm not concerned about that. However, could you add unit test coverage of the new wget param?

@jhoblitt
Copy link
Owner

If this PR is merged, it would also resolve most of #21.

@jhoblitt
Copy link
Owner

@zivan Could you rebase on the current master to see if it resolves the travis failuers?

@zivan
Copy link
Contributor Author

zivan commented Jan 15, 2015

rebase done. travis builds is passing.

@zivan
Copy link
Contributor Author

zivan commented Jan 15, 2015

This is not PR merging. I am using vagrant with virtualbox (https://atlas.hashicorp.com/puppetlabs/boxes/centos-6.5-64-puppet) I tried to install your puppet module (https://forge.puppetlabs.com/jhoblitt/selenium)

vagrant provision log
==> default: Notice: /Stage[main]/Selenium/Wget::Fetch[selenium-server-standalone]/Exec[wget-selenium-server-standalone]/returns: ERROR: certificate common name “*.googleusercontent.com” doesn’t match requested host name “selenium-release.storage.googleapis.com”.
==> default: Notice: /Stage[main]/Selenium/Wget::Fetch[selenium-server-standalone]/Exec[wget-selenium-server-standalone]/returns: To connect to selenium-release.storage.googleapis.com insecurely, use ‘--no-check-certificate’.
==> default: Error: wget --no-verbose --output-document='/opt/selenium/jars/selenium-server-standalone-2.44.0.jar' 'https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar' returned 5 instead of one of [0]
==> default: Error: /Stage[main]/Selenium/Wget::Fetch[selenium-server-standalone]/Exec[wget-selenium-server-standalone]/returns: change from notrun to 0 failed: wget --no-verbose --output-document='/opt/selenium/jars/selenium-server-standalone-2.44.0.jar' 'https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar' returned 5 instead of one of [0]

if do "wget https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar" from console on the guest
[vagrant@selenium ~]$ wget https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
--2015-01-15 03:17:44-- https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
Resolving selenium-release.storage.googleapis.com... 216.58.209.129, 2a00:1450:400f:803::100b
Connecting to selenium-release.storage.googleapis.com|216.58.209.129|:443... connected.
ERROR: certificate common name “*.googleusercontent.com” doesn’t match requested host name “selenium-release.storage.googleapis.com”.
To connect to selenium-release.storage.googleapis.com insecurely, use ‘--no-check-certificate’.

but on host machine ok

zivan@local:/tmp$ wget https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
--2015-01-15 09:20:26-- https://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
Resolving selenium-release.storage.googleapis.com (selenium-release.storage.googleapis.com)... 216.58.209.129, 2a00:1450:400f:804::2001
Connecting to selenium-release.storage.googleapis.com (selenium-release.storage.googleapis.com)|216.58.209.129|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35169724 (34M) [application/java-archive]
Saving to: ‘selenium-server-standalone-2.44.0.jar’

100%[=============================================================================================================>]

so i thought to add the param "nocheckcertificate"

@jhoblitt
Copy link
Owner

@zivan This looks good; could you add unit test coverage of the new param?

@zivan
Copy link
Contributor Author

zivan commented Jan 30, 2015

@jhoblitt done please check

@jhoblitt
Copy link
Owner

jhoblitt commented Feb 1, 2015

@zivan looks good. Thank you for the contribution!

jhoblitt pushed a commit that referenced this pull request Feb 1, 2015
fixed issue #19 SSL error with wget
@jhoblitt jhoblitt merged commit 1c6a1b0 into jhoblitt:master Feb 1, 2015
@jhoblitt jhoblitt mentioned this pull request Feb 1, 2015
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.

2 participants