mirror of
https://github.com/moby/moby.git
synced 2026-08-05 07:30:57 +00:00
migrate TestContainerAPIPostContainerStop to integration
Migrates: - TestContainerAPIPostContainerStop Signed-off-by: Yudai Nakakubo <nyggl4dev@gmail.com>
This commit is contained in:
@@ -953,19 +953,6 @@ func (s *DockerAPISuite) TestContainerAPIChunkedEncoding(c *testing.T) {
|
||||
assert.Equal(c, resp.StatusCode, http.StatusCreated)
|
||||
}
|
||||
|
||||
func (s *DockerAPISuite) TestContainerAPIPostContainerStop(c *testing.T) {
|
||||
containerID := runSleepingContainer(c)
|
||||
cli.WaitRun(c, containerID)
|
||||
|
||||
apiClient, err := client.New(client.FromEnv)
|
||||
assert.NilError(c, err)
|
||||
defer apiClient.Close()
|
||||
|
||||
_, err = apiClient.ContainerStop(testutil.GetContext(c), containerID, client.ContainerStopOptions{})
|
||||
assert.NilError(c, err)
|
||||
assert.NilError(c, waitInspect(containerID, "{{ .State.Running }}", "false", 60*time.Second))
|
||||
}
|
||||
|
||||
// Ensure an error occurs when you have a container read-only rootfs but you
|
||||
// extract an archive to a symlink in a writable volume which points to a
|
||||
// directory outside of the volume.
|
||||
|
||||
Reference in New Issue
Block a user