|
@@ -41,7 +41,7 @@ func (s *DockerRegistrySuite) TestPushUntagged(c *check.C) {
|
|
expected := "Repository does not exist"
|
|
expected := "Repository does not exist"
|
|
pushCmd := exec.Command(dockerBinary, "push", repoName)
|
|
pushCmd := exec.Command(dockerBinary, "push", repoName)
|
|
if out, _, err := runCommandWithOutput(pushCmd); err == nil {
|
|
if out, _, err := runCommandWithOutput(pushCmd); err == nil {
|
|
- c.Fatalf("pushing the image to the private registry should have failed: outuput %q", out)
|
|
|
|
|
|
+ c.Fatalf("pushing the image to the private registry should have failed: output %q", out)
|
|
} else if !strings.Contains(out, expected) {
|
|
} else if !strings.Contains(out, expected) {
|
|
c.Fatalf("pushing the image failed with an unexpected message: expected %q, got %q", expected, out)
|
|
c.Fatalf("pushing the image failed with an unexpected message: expected %q, got %q", expected, out)
|
|
}
|
|
}
|
|
@@ -53,7 +53,7 @@ func (s *DockerRegistrySuite) TestPushBadTag(c *check.C) {
|
|
expected := "does not exist"
|
|
expected := "does not exist"
|
|
pushCmd := exec.Command(dockerBinary, "push", repoName)
|
|
pushCmd := exec.Command(dockerBinary, "push", repoName)
|
|
if out, _, err := runCommandWithOutput(pushCmd); err == nil {
|
|
if out, _, err := runCommandWithOutput(pushCmd); err == nil {
|
|
- c.Fatalf("pushing the image to the private registry should have failed: outuput %q", out)
|
|
|
|
|
|
+ c.Fatalf("pushing the image to the private registry should have failed: output %q", out)
|
|
} else if !strings.Contains(out, expected) {
|
|
} else if !strings.Contains(out, expected) {
|
|
c.Fatalf("pushing the image failed with an unexpected message: expected %q, got %q", expected, out)
|
|
c.Fatalf("pushing the image failed with an unexpected message: expected %q, got %q", expected, out)
|
|
}
|
|
}
|