mirror of
https://github.com/moby/moby.git
synced 2025-08-01 05:47:11 +03:00
fix tests after CLI update
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@ -59,7 +59,7 @@ func (s *DockerSuite) TestConfigHTTPHeader(c *check.C) {
|
|||||||
c.Assert(headers["User-Agent"], checker.NotNil, check.Commentf("Missing User-Agent"))
|
c.Assert(headers["User-Agent"], checker.NotNil, check.Commentf("Missing User-Agent"))
|
||||||
|
|
||||||
//TODO(tiborvass): restore dockerversion.Version instead of library-import
|
//TODO(tiborvass): restore dockerversion.Version instead of library-import
|
||||||
c.Assert(headers["User-Agent"][0], checker.Equals, "Docker-Client/library-import ("+runtime.GOOS+")", check.Commentf("Badly formatted User-Agent,out:%v", result.Combined()))
|
c.Assert(headers["User-Agent"][0], checker.Equals, "Docker-Client/unknown-version ("+runtime.GOOS+")", check.Commentf("Badly formatted User-Agent,out:%v", result.Combined()))
|
||||||
|
|
||||||
c.Assert(headers["Myheader"], checker.NotNil)
|
c.Assert(headers["Myheader"], checker.NotNil)
|
||||||
c.Assert(headers["Myheader"][0], checker.Equals, "MyValue", check.Commentf("Missing/bad header,out:%v", result.Combined()))
|
c.Assert(headers["Myheader"][0], checker.Equals, "MyValue", check.Commentf("Missing/bad header,out:%v", result.Combined()))
|
||||||
|
@ -143,7 +143,7 @@ func (s *DockerSuite) TestExecPausedContainer(c *check.C) {
|
|||||||
ContainerID := strings.TrimSpace(out)
|
ContainerID := strings.TrimSpace(out)
|
||||||
|
|
||||||
dockerCmd(c, "pause", "testing")
|
dockerCmd(c, "pause", "testing")
|
||||||
out, _, err := dockerCmdWithError("exec", "-i", "-t", ContainerID, "echo", "hello")
|
out, _, err := dockerCmdWithError("exec", ContainerID, "echo", "hello")
|
||||||
c.Assert(err, checker.NotNil, check.Commentf("container should fail to exec new command if it is paused"))
|
c.Assert(err, checker.NotNil, check.Commentf("container should fail to exec new command if it is paused"))
|
||||||
|
|
||||||
expected := ContainerID + " is paused, unpause the container before exec"
|
expected := ContainerID + " is paused, unpause the container before exec"
|
||||||
|
Reference in New Issue
Block a user