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

Docker.httpClient() + unit tests #166

Merged
merged 4 commits into from Nov 4, 2018
Merged

Docker.httpClient() + unit tests #166

merged 4 commits into from Nov 4, 2018

Conversation

amihaiemil
Copy link
Owner

PR for #165

@0crat
Copy link
Collaborator

0crat commented Nov 3, 2018

Job #166 is now in scope, role is REV

@coveralls
Copy link

coveralls commented Nov 3, 2018

Pull Request Test Coverage Report for Build 319

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 82.087%

Totals Coverage Status
Change from base Build 311: 0.04%
Covered Lines: 417
Relevant Lines: 508

💛 - Coveralls

@0crat
Copy link
Collaborator

0crat commented Nov 3, 2018

This pull request #166 is assigned to @llorllale/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @amihaiemil/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be no monetary reward for this job

).httpClient(),
Matchers.allOf(
Matchers.notNullValue(),
Matchers.instanceOf(HttpClient.class),
Copy link
Contributor

Choose a reason for hiding this comment

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

@amihaiemil this 'instanceOf' check seems unnecessary

).httpClient(),
Matchers.allOf(
Matchers.notNullValue(),
Matchers.instanceOf(HttpClient.class),
Copy link
Contributor

Choose a reason for hiding this comment

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

@amihaiemil same here: this 'instanceOf' check seems unnecessary

@llorllale
Copy link
Contributor

@amihaiemil left you a couple of minor comments.

What really bugs me though is the premise behind this issue. What's wrong with LocalDocker?

@amihaiemil
Copy link
Owner Author

amihaiemil commented Nov 4, 2018

@llorllale The premise is simply that the client might want to perform HTTP requests which are not yet implemented by the library.

And, in case of a local Docker, the HttpClient would need to be configured to work over a unix socket (which is not a trivial task, you really have to know how Apache HttpClient works). So, since we already did that, we might as well let the user get it and use it directly :D

@llorllale
Copy link
Contributor

@amihaiemil I think you'll have to expose the baseURI as well

@amihaiemil
Copy link
Owner Author

@llorllale That won't be necessary since the user will build their own HttpRequest and they should already know the base URI. Besides, our HttpClient does not contain any base URI, only the connection information (e.g. that File socket).

@llorllale
Copy link
Contributor

@amihaiemil alright, go ahead then (good to merge)

@amihaiemil
Copy link
Owner Author

@rultor merge it

@rultor
Copy link
Collaborator

rultor commented Nov 4, 2018

@rultor merge it

@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit ab0d78e into master Nov 4, 2018
@rultor
Copy link
Collaborator

rultor commented Nov 4, 2018

@rultor merge it

@amihaiemil Done! FYI, the full log is here (took me 3min)

@0crat
Copy link
Collaborator

0crat commented Nov 4, 2018

Job was finished in 30 hours, bonus for fast delivery is possible (see §36)

@0crat
Copy link
Collaborator

0crat commented Nov 4, 2018

The job #166 is now out of scope

@0crat
Copy link
Collaborator

0crat commented Nov 4, 2018

Order was finished: +20 point(s) just awarded to @llorllale/z

@0crat
Copy link
Collaborator

0crat commented Nov 4, 2018

Payment to ARC for a closed pull request, as in §28: +10 point(s) just awarded to @amihaiemil/z

@amihaiemil amihaiemil deleted the 165 branch November 4, 2018 18:54
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

5 participants