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:
@ -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")
|
||||
|
Reference in New Issue
Block a user