Fix execution of copy file/archive command skips 0xFF bytes#501
Merged
marcuslinke merged 3 commits intodocker-java:masterfrom Mar 29, 2016
Merged
Conversation
…entation of copy file/archive commands
Current coverage is
|
| streamHandler.channelRead0(ctx, buffer); | ||
| streamHandler.channelReadComplete(ctx); | ||
|
|
||
| Assert.assertTrue(IOUtils.contentEquals(callback.getInputStream(), new ByteBufInputStream(buffer))); |
Member
Member
|
I think real integration test is also required. |
Member
|
@tejksat please point "~/.docker-java.properties" (example could be found in resources) to some docker daemon and try implement integration test. Example could be found for any existing |
Contributor
Author
|
@KostyaSha ok, I'll check it a bit later. |
Contributor
Author
|
@KostyaSha done. Please, take a look. |
Member
|
Cool, thanks. Would like @marcuslinke to look at. |
Member
|
@marcuslinke ping |
Contributor
|
Finally back in town hopefully I'm able to merge this evening. |
Contributor
|
I will release 3.0.0-RC4 including this fix soon. |
Contributor
|
@tejksat Thanks for contributing! |
Contributor
Author
|
Nice, thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I evaded from writing an integration test and just checked that no bytes from 0 to 255 are missed when using
HttpResponseStreamHandler. Added Mockito as a test dependency for easy mockingChannelHandlerContext.This change is