Add tests for API container delete
Signed-off-by: Antonio Murdaca <me@runcom.ninja> Upstream-commit: 8771cafab65e50d09d3590a7f22758e919b78fe4 Component: engine
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
@ -54,16 +53,6 @@ func (s *DockerSuite) TestRmRunningContainer(c *check.C) {
|
||||
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestRmRunningContainerCheckError409(c *check.C) {
|
||||
|
||||
createRunningContainer(c, "foo")
|
||||
|
||||
endpoint := "/containers/foo"
|
||||
status, _, err := sockRequest("DELETE", endpoint, nil)
|
||||
c.Assert(status, check.Equals, http.StatusConflict)
|
||||
c.Assert(err, check.IsNil)
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestRmForceRemoveRunningContainer(c *check.C) {
|
||||
|
||||
createRunningContainer(c, "foo")
|
||||
|
||||
Reference in New Issue
Block a user