Merge pull request #21740 from mindlapse/fixErrorMsg
Improved message when pushing a non-existant image Upstream-commit: f2ed337ac9834b600dbe5afbdaa2146c9e5d71c1 Component: engine
This commit is contained in:
@@ -43,7 +43,7 @@ func (s *DockerSuite) TestPushUnprefixedRepo(c *check.C) {
|
||||
|
||||
func testPushUntagged(c *check.C) {
|
||||
repoName := fmt.Sprintf("%v/dockercli/busybox", privateRegistryURL)
|
||||
expected := "Repository does not exist"
|
||||
expected := "An image does not exist locally with the tag"
|
||||
|
||||
out, _, err := dockerCmdWithError("push", repoName)
|
||||
c.Assert(err, check.NotNil, check.Commentf("pushing the image to the private registry should have failed: output %q", out))
|
||||
|
||||
Reference in New Issue
Block a user