From 8f22a7351ee9b89a526acfa6bf92588132ed1c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 23 Jul 2021 11:46:26 +0200 Subject: [PATCH] Use quay.io in docker unit tests instead of docker.io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... to avoid docker.io pull limits. NewImageSource and NewImage actually access the remote server (because NewImageSource is looking for a working mirror); update NewImageDestination basically for symmetry. Signed-off-by: Miloslav Trmač --- docker/docker_transport_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/docker_transport_test.go b/docker/docker_transport_test.go index 8b2b1b1f7a..1cb3bfcff1 100644 --- a/docker/docker_transport_test.go +++ b/docker/docker_transport_test.go @@ -153,7 +153,7 @@ func TestReferencePolicyConfigurationNamespaces(t *testing.T) { } func TestReferenceNewImage(t *testing.T) { - ref, err := ParseReference("//busybox") + ref, err := ParseReference("//quay.io/libpod/busybox") require.NoError(t, err) img, err := ref.NewImage(context.Background(), &types.SystemContext{ RegistriesDirPath: "/this/does/not/exist", @@ -166,7 +166,7 @@ func TestReferenceNewImage(t *testing.T) { } func TestReferenceNewImageSource(t *testing.T) { - ref, err := ParseReference("//busybox") + ref, err := ParseReference("//quay.io/libpod/busybox") require.NoError(t, err) src, err := ref.NewImageSource(context.Background(), &types.SystemContext{RegistriesDirPath: "/this/does/not/exist", DockerPerHostCertDirPath: "/this/does/not/exist"}) @@ -175,7 +175,7 @@ func TestReferenceNewImageSource(t *testing.T) { } func TestReferenceNewImageDestination(t *testing.T) { - ref, err := ParseReference("//busybox") + ref, err := ParseReference("//quay.io/libpod/busybox") require.NoError(t, err) dest, err := ref.NewImageDestination(context.Background(), &types.SystemContext{RegistriesDirPath: "/this/does/not/exist", DockerPerHostCertDirPath: "/this/does/not/exist"})