|
@@ -99,17 +99,17 @@ func (s *DockerSuite) TestTagWithPrefixHyphen(c *check.C) {
|
|
// test repository name begin with '-'
|
|
// test repository name begin with '-'
|
|
out, _, err := dockerCmdWithError("tag", "busybox:latest", "-busybox:test")
|
|
out, _, err := dockerCmdWithError("tag", "busybox:latest", "-busybox:test")
|
|
c.Assert(err, checker.NotNil, check.Commentf(out))
|
|
c.Assert(err, checker.NotNil, check.Commentf(out))
|
|
- c.Assert(out, checker.Contains, "invalid reference format", check.Commentf("tag a name begin with '-' should failed"))
|
|
|
|
|
|
+ c.Assert(out, checker.Contains, "Error parsing reference", check.Commentf("tag a name begin with '-' should failed"))
|
|
|
|
|
|
// test namespace name begin with '-'
|
|
// test namespace name begin with '-'
|
|
out, _, err = dockerCmdWithError("tag", "busybox:latest", "-test/busybox:test")
|
|
out, _, err = dockerCmdWithError("tag", "busybox:latest", "-test/busybox:test")
|
|
c.Assert(err, checker.NotNil, check.Commentf(out))
|
|
c.Assert(err, checker.NotNil, check.Commentf(out))
|
|
- c.Assert(out, checker.Contains, "invalid reference format", check.Commentf("tag a name begin with '-' should failed"))
|
|
|
|
|
|
+ c.Assert(out, checker.Contains, "Error parsing reference", check.Commentf("tag a name begin with '-' should failed"))
|
|
|
|
|
|
// test index name begin with '-'
|
|
// test index name begin with '-'
|
|
out, _, err = dockerCmdWithError("tag", "busybox:latest", "-index:5000/busybox:test")
|
|
out, _, err = dockerCmdWithError("tag", "busybox:latest", "-index:5000/busybox:test")
|
|
c.Assert(err, checker.NotNil, check.Commentf(out))
|
|
c.Assert(err, checker.NotNil, check.Commentf(out))
|
|
- c.Assert(out, checker.Contains, "invalid reference format", check.Commentf("tag a name begin with '-' should failed"))
|
|
|
|
|
|
+ c.Assert(out, checker.Contains, "Error parsing reference", check.Commentf("tag a name begin with '-' should failed"))
|
|
}
|
|
}
|
|
|
|
|
|
// ensure tagging using official names works
|
|
// ensure tagging using official names works
|