1
0
mirror of https://github.com/moby/moby.git synced 2025-07-29 07:21:35 +03:00

Revert all but TestPullImageFromCentralRegistry changes

Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
This commit is contained in:
Arnaud Porterie
2015-03-24 16:27:35 -07:00
parent 5d70a97b1f
commit 8900ae2928
7 changed files with 1 additions and 91 deletions

View File

@ -96,33 +96,6 @@ func TestPullImageFromCentralRegistry(t *testing.T) {
logDone("pull - pull hello-world")
}
// pulling an image from the local registry should work
func TestPullImageFromlocalRegistry(t *testing.T) {
defer deleteAllContainers()
if err := startRegistryV1(); err != nil {
t.Fatal(err)
}
repoName := privateV1RegistryURL
defer deleteImages(repoName)
repo := fmt.Sprintf("%v/%v:%v", repoName, "busybox", "latest")
if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "tag", "busybox", repo)); err != nil {
t.Fatalf("Failed to tag image %v: error %v, output %q", repo, err, out)
}
defer deleteImages(repo)
if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "push", repo)); err != nil {
t.Fatalf("Failed to push image %v: error %v, output %q", repo, err, string(out))
}
pullCmd := exec.Command(dockerBinary, "pull", repo)
if out, _, err := runCommandWithOutput(pullCmd); err != nil {
t.Fatalf("pulling the hello-world image from the registry has failed: %s, %v", out, err)
}
logDone("pull - pull local hello-world")
}
// pulling a non-existing image from the central registry should return a non-zero exit code
func TestPullNonExistingImage(t *testing.T) {
pullCmd := exec.Command(dockerBinary, "pull", "fooblahblah1234")