Use k8s.gcr.io/pause:3.4.1 in pull-only tests

This reduces the need to pull random images from docker.io, and should
greatly reduce the tendancy to hit their hourly rate-limit during
integration test runs.

TestImagePullSomePlatforms uses k8s.gcr.io/pause:3.2 so that it does not
see the content pulled by TestImagePullAllPlatforms. This image is
multi-arch, but not multi-os.

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
This commit is contained in:
Paul "TBBle" Hampson
2021-03-13 12:14:24 +11:00
parent bcc02002a2
commit b375f90128
3 changed files with 11 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ func TestImageIsUnpacked(t *testing.T) {
t.Skip()
}
const imageName = "docker.io/library/busybox:latest"
const imageName = "k8s.gcr.io/pause:3.4.1"
ctx, cancel := testContext(t)
defer cancel()
@@ -86,9 +86,9 @@ func TestImagePullWithDistSourceLabel(t *testing.T) {
t.Skip()
}
var (
source = "docker.io"
repoName = "library/busybox"
tag = "latest"
source = "k8s.gcr.io"
repoName = "pause"
tag = "3.4.1"
)
ctx, cancel := testContext(t)
@@ -144,7 +144,7 @@ func TestImageUsage(t *testing.T) {
t.Skip()
}
imageName := "docker.io/library/busybox:latest"
imageName := "k8s.gcr.io/pause:3.4.1"
ctx, cancel := testContext(t)
defer cancel()
@@ -241,7 +241,7 @@ func TestImageUsage(t *testing.T) {
func TestImageSupportedBySnapshotter_Error(t *testing.T) {
var unsupportedImage string
if runtime.GOOS == "windows" {
unsupportedImage = "docker.io/library/busybox:latest"
unsupportedImage = "k8s.gcr.io/pause-amd64:3.2"
} else {
unsupportedImage = "mcr.microsoft.com/windows/nanoserver:1809"
}