Switch test image to a non rate-limited manifest list

Signed-off-by: Phil Estes <estesp@amazon.com>
This commit is contained in:
Phil Estes
2021-03-17 10:33:49 -04:00
parent 32a08f1a6a
commit 6e343f25e8
2 changed files with 11 additions and 29 deletions

View File

@@ -19,7 +19,6 @@
package containerd
import (
"runtime"
"testing"
. "github.com/containerd/containerd"
@@ -33,28 +32,11 @@ const (
)
var (
testImage string
testImage = "mirror.gcr.io/library/busybox:latest"
shortCommand = withProcessArgs("true")
longCommand = withProcessArgs("/bin/sh", "-c", "while true; do sleep 1; done")
)
func init() {
switch runtime.GOARCH {
case "386":
testImage = "docker.io/i386/alpine:latest"
case "arm":
testImage = "docker.io/arm32v6/alpine:latest"
case "arm64":
testImage = "docker.io/arm64v8/alpine:latest"
case "ppc64le":
testImage = "docker.io/ppc64le/alpine:latest"
case "s390x":
testImage = "docker.io/s390x/alpine:latest"
default:
testImage = "docker.io/library/alpine:latest"
}
}
func TestImagePullSchema1WithEmptyLayers(t *testing.T) {
client, err := newClient(t, address)
if err != nil {