|
|
@ -1,6 +1,7 @@
|
|
|
|
package container
|
|
|
|
package container
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
|
|
|
|
"github.com/docker/docker/api/types/container"
|
|
|
|
"github.com/docker/docker/api/types/network"
|
|
|
|
"github.com/docker/docker/api/types/network"
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
@ -270,7 +271,7 @@ var _ = Describe("the client", func() {
|
|
|
|
// API.ContainerExecCreate
|
|
|
|
// API.ContainerExecCreate
|
|
|
|
ghttp.CombineHandlers(
|
|
|
|
ghttp.CombineHandlers(
|
|
|
|
ghttp.VerifyRequest("POST", HaveSuffix("containers/%v/exec", containerID)),
|
|
|
|
ghttp.VerifyRequest("POST", HaveSuffix("containers/%v/exec", containerID)),
|
|
|
|
ghttp.VerifyJSONRepresenting(types.ExecConfig{
|
|
|
|
ghttp.VerifyJSONRepresenting(container.ExecOptions{
|
|
|
|
User: user,
|
|
|
|
User: user,
|
|
|
|
Detach: false,
|
|
|
|
Detach: false,
|
|
|
|
Tty: true,
|
|
|
|
Tty: true,
|
|
|
@ -285,7 +286,7 @@ var _ = Describe("the client", func() {
|
|
|
|
// API.ContainerExecStart
|
|
|
|
// API.ContainerExecStart
|
|
|
|
ghttp.CombineHandlers(
|
|
|
|
ghttp.CombineHandlers(
|
|
|
|
ghttp.VerifyRequest("POST", HaveSuffix("exec/%v/start", execID)),
|
|
|
|
ghttp.VerifyRequest("POST", HaveSuffix("exec/%v/start", execID)),
|
|
|
|
ghttp.VerifyJSONRepresenting(types.ExecStartCheck{
|
|
|
|
ghttp.VerifyJSONRepresenting(container.ExecStartOptions{
|
|
|
|
Detach: false,
|
|
|
|
Detach: false,
|
|
|
|
Tty: true,
|
|
|
|
Tty: true,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|