Navigation Menu

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

(SERVER-43) fix http report processor - now with tests! #217

Merged
merged 4 commits into from Oct 10, 2014
Merged

(SERVER-43) fix http report processor - now with tests! #217

merged 4 commits into from Oct 10, 2014

Conversation

KevinCorcoran
Copy link
Contributor

No description provided.

This fixes the ArgumentError triggered by the http report processor.
@KevinCorcoran KevinCorcoran changed the title Server 43/fix http report processor (SERVER-43) fix http report processor - now with tests! Oct 10, 2014
Refactor test for extensibility and add a test case for HTTP POST.
Use a ScriptingContainer with persistent local variables, so we can
re-use the HttpClient instance for additional tests.
'encode64' incorrectly adds a '\n' to the end of the encoded string -
use 'strict_encode64' which isn't stupid.

Also remove the errant ':' character in the 'Authorization' header used
by the ruby HTTP client.
(is (= "hi" (.runScriptlet scripting-container "response.body"))))

(testing "invvalid credentials"
Copy link
Contributor

Choose a reason for hiding this comment

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

s/invvalid/invalid

@KevinCorcoran
Copy link
Contributor Author

@nwolfe - comments addressed.

(is (= "hi" (.runScriptlet scripting-container "c.get('/', {}).body"))))

(testing "HTTP POST"
Copy link
Contributor

Choose a reason for hiding this comment

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

Extra test coverage, yay!

@camlow325
Copy link
Contributor

👍

1 similar comment
@nwolfe
Copy link
Contributor

nwolfe commented Oct 10, 2014

👍

nwolfe added a commit that referenced this pull request Oct 10, 2014
…processor

(SERVER-43) fix http report processor - now with tests!
@nwolfe nwolfe merged commit ba857e8 into puppetlabs:master Oct 10, 2014
@KevinCorcoran KevinCorcoran deleted the SERVER-43/fix-http-report-processor branch December 4, 2014 22:18
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