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 parameter for expected HTTP code #6

Merged
merged 1 commit into from
Jan 26, 2016

Conversation

claytono
Copy link
Contributor

Allow user to specify the expected HTTP result code. Defaults to 200.

@EmilienM
Copy link

👍

@@ -58,7 +58,7 @@ def create
#
# @api private
def validator
@validator ||= PuppetX::PuppetCommunity::HttpValidator.new(resource[:name], resource[:host], resource[:port], resource[:use_ssl], resource[:test_url])
@validator ||= PuppetX::PuppetCommunity::HttpValidator.new(resource[:name], resource[:host], resource[:port], resource[:use_ssl], resource[:test_url], resource[:expected_code])
Copy link
Contributor

Choose a reason for hiding this comment

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

this is pretty awful :D

@igalic
Copy link
Contributor

igalic commented Nov 7, 2015

@Dvorak would you mind also adding this new parameter to the readme?

@jyaworski
Copy link
Member

Hello:

What's the status of this PR?

@EmilienM
Copy link

ping @Dvorak

Allow user to specify the expected HTTP result code.  Defaults to 200.
@claytono
Copy link
Contributor Author

Wrapped the ugly line I had made slightly uglier and added to README

@jyaworski
Copy link
Member

LGTM.

jyaworski added a commit that referenced this pull request Jan 26, 2016
Add parameter for expected HTTP code
@jyaworski jyaworski merged commit 7e97b2c into voxpupuli:master Jan 26, 2016
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.

4 participants