mirror of
https://github.com/moby/moby.git
synced 2025-07-29 07:21:35 +03:00
Pull all image aliases for id. Closes #8141.
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
@ -6,6 +6,8 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// FIXME: we need a test for pulling all aliases for an image (issue #8141)
|
||||
|
||||
// pulling an image from the central registry should work
|
||||
func TestPullImageFromCentralRegistry(t *testing.T) {
|
||||
pullCmd := exec.Command(dockerBinary, "pull", "scratch")
|
||||
@ -13,9 +15,9 @@ func TestPullImageFromCentralRegistry(t *testing.T) {
|
||||
errorOut(err, t, fmt.Sprintf("%s %s", out, err))
|
||||
|
||||
if err != nil || exitCode != 0 {
|
||||
t.Fatal("pulling the busybox image from the registry has failed")
|
||||
t.Fatal("pulling the scratch image from the registry has failed")
|
||||
}
|
||||
logDone("pull - pull busybox")
|
||||
logDone("pull - pull scratch")
|
||||
}
|
||||
|
||||
// pulling a non-existing image from the central registry should return a non-zero exit code
|
||||
|
Reference in New Issue
Block a user