Skip to content

Commit

Permalink
add content type
Browse files Browse the repository at this point in the history
  • Loading branch information
dmandalidis committed Aug 21, 2024
1 parent b7e567e commit 3cccb15
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public void testCustomHeaders() throws Exception {
builder.header("string", "2");
builder.header("list", Arrays.asList("a", "b", "c"));

server.enqueue(new MockResponse());
server.enqueue(new MockResponse().addHeader("Content-Type", "application/json"));

final DefaultDockerClient dockerClient = builder.build();
dockerClient.info();
Expand Down Expand Up @@ -248,7 +248,7 @@ public void testGroupAdd() throws Exception {
.hostConfig(hostConfig)
.build();

server.enqueue(new MockResponse());
server.enqueue(new MockResponse().addHeader("Content-Type", "application/json"));

dockerClient.createContainer(containerConfig);

Expand All @@ -273,7 +273,7 @@ public void testCapAddAndDrop() throws Exception {
.hostConfig(hostConfig)
.build();

server.enqueue(new MockResponse());
server.enqueue(new MockResponse().addHeader("Content-Type", "application/json"));

dockerClient.createContainer(containerConfig);

Expand Down Expand Up @@ -371,7 +371,7 @@ public void testNanoCpus() throws Exception {
.hostConfig(hostConfig)
.build();

server.enqueue(new MockResponse());
server.enqueue(new MockResponse().addHeader("Content-Type", "application/json"));

dockerClient.createContainer(containerConfig);

Expand Down Expand Up @@ -1091,7 +1091,7 @@ public void testBindBuilderSelinuxLabeling() throws Exception {
public void testKillContainer() throws Exception {
final DefaultDockerClient dockerClient = builder.build();

server.enqueue(new MockResponse());
server.enqueue(new MockResponse().addHeader("Content-Type", "application/json"));

final Signal signal = Signal.SIGHUP;
dockerClient.killContainer("1234", signal);
Expand Down Expand Up @@ -1142,7 +1142,7 @@ public void testBufferedRequestEntityProcessing() throws Exception {
.hostConfig(hostConfig)
.build();

server.enqueue(new MockResponse());
server.enqueue(new MockResponse().addHeader("Content-Type", "application/json"));

dockerClient.createContainer(containerConfig);

Expand All @@ -1165,7 +1165,7 @@ public void testChunkedRequestEntityProcessing() throws Exception {
.hostConfig(hostConfig)
.build();

server.enqueue(new MockResponse());
server.enqueue(new MockResponse().addHeader("Content-Type", "application/json"));

dockerClient.createContainer(containerConfig);

Expand Down

0 comments on commit 3cccb15

Please sign in to comment.