FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Preserve the order of requests to Docker daemon using DefaultInvocationBuilder (#1492) by tejksat · Pull Request #1494 · docker-java/docker-java · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
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
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private JerseyDockerHttpClient(
RequestConfig.Builder requestConfigBuilder = RequestConfig.custom();

// logging may disabled via log level
clientConfig.register(new SelectiveLoggingFilter(LOGGER, true));
clientConfig.register(new SelectiveLoggingFilter(LOGGER, false));

if (readTimeout != null) {
requestConfigBuilder.setSocketTimeout(readTimeout);
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import static org.hamcrest.Matchers.emptyString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.*;

/**
* @author Kanstantsin Shautsou
Expand Down Expand Up @@ -80,6 +79,9 @@ public void onNext(Frame frame) {
.withStdIn(in)
.exec(callback);

assertTrue("Processing of the response should start shortly after executing `attachContainerCmd`",
callback.awaitStarted(5, SECONDS));

dockerClient.startContainerCmd(container.getId()).exec();

out.write((snippet + "\n").getBytes());
Expand Down Expand Up @@ -123,6 +125,9 @@ public void onNext(Frame frame) {
.withLogs(true)
.exec(callback);

assertTrue("Processing of the response should start shortly after executing `attachContainerCmd`",
callback.awaitStarted(5, SECONDS));

dockerClient.startContainerCmd(container.getId()).exec();

callback.awaitCompletion(30, TimeUnit.SECONDS);
Expand Down Expand Up @@ -164,6 +169,9 @@ public void onNext(Frame frame) {
.withFollowStream(true)
.exec(callback);

assertTrue("Processing of the response should start shortly after executing `attachContainerCmd`",
callback.awaitStarted(5, SECONDS));

dockerClient.startContainerCmd(container.getId()).exec();

callback.awaitCompletion(15, TimeUnit.SECONDS);
Expand Down Expand Up @@ -213,6 +221,9 @@ public void onNext(Frame frame) {
.withStdIn(stdin)
.exec(callback);

assertFalse("Processing of the response is not expected to be started" +
" because `attachContainerCmd` with stdin is not supported", callback.awaitStarted(5, SECONDS));

dockerClient.startContainerCmd(container.getId()).exec();
Comment thread
bsideup marked this conversation as resolved.
Resolved

callback.awaitCompletion(30, TimeUnit.SECONDS);
Expand Down

Back | FazBrowse Home | New Git URL