-
-
Notifications
You must be signed in to change notification settings - Fork 55
#38: Preparing LocalDocker for testing #40
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
Conversation
* Added primary ctor to `LocalDocker` * Added `AssertRequest`, a mock HttpClient useful for testing requests * Fixed typo in interface `Docker`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@llorllale looks great, just one comment
* @param client The http client to use. | ||
* @param baseUri Base URI. | ||
*/ | ||
LocalDocker(final HttpClient client, final URI baseUri) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@llorllale Could you accept String version
here, instead of URI baseUri
, and move URI.create(...)
in the call to super
? I think it's more uniform, to have all ctors accepting the version and letting the object build the URI with the needed host :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amihaiemil sure
As per PR review: * The String version is now specified all the way up to the primary ctor of LocalDocker
@amihaiemil please check now |
@rultor merge it pls |
@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here |
@amihaiemil Done! FYI, the full log is here (took me 2min) |
as per #38:
This PR:
LocalDocker
AssertRequest
, a mock HttpClient useful for testing requestsDocker
UnixHttpClient
AssertRequest