Skip to content

Commit

Permalink
Adapt to api model changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Oct 4, 2023
1 parent 9137222 commit afea736
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void exec() {
getLogger().debug("exec cmd: '" + execCreateConfig.getCmd() + "'");
String execId = getDockerClient().createExec(containerId.get(), execCreateConfig).getContent().getId();

ExecStartConfig execStartConfig = new ExecStartConfig(false, false);
ExecStartConfig execStartConfig = new ExecStartConfig(false, false, null);
getDockerClient().startExec(execId, execStartConfig, null, null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class DockerExecTaskSpec extends Specification {

then:
1 * dockerClient.createExec(containerId, execConfig) >> new EngineResponseContent(new IdResponse("exec-id"))
1 * dockerClient.startExec("exec-id", new ExecStartConfig(false, false), null, null)
1 * dockerClient.startExec("exec-id", new ExecStartConfig(false, false, null), null, null)
}

def "delegates exec commands to dockerClient and saves result"() {
Expand All @@ -65,6 +65,6 @@ class DockerExecTaskSpec extends Specification {

then:
1 * dockerClient.createExec(containerId, execConfig) >> new EngineResponseContent(new IdResponse("exec-id"))
1 * dockerClient.startExec("exec-id", new ExecStartConfig(false, false), null, null)
1 * dockerClient.startExec("exec-id", new ExecStartConfig(false, false, null), null, null)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DockerImagesTaskSpec extends Specification {

then:
1 * dockerClient.images() >> new EngineResponseContent([new ImageSummary(
"image", "parent", -1, 1, 10, 0, 1, null, null, null
"image", "parent", -1, 1, 10, 0, null, null, null, null
)])

and:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DockerInspectImageTaskSpec extends Specification {
"sha256:1234", null, null, "parent", "", "", "",
null, "", "", null, "", "", "", "",
0, 0, new GraphDriverData("", [:]),
new ImageInspectRootFS("", [], ""),
new ImageInspectRootFS("", []),
null
))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DockerVolumeCreateTaskSpec extends Specification {
volumeConfig = config
}
def expectedResult = new EngineResponseContent(new Volume(
"foo", "overlay", "", null, null, null, null, null, null
"foo", "overlay", "", null, null, null, null, null, null, null
))

when:
Expand Down

0 comments on commit afea736

Please sign in to comment.