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:
@@ -310,7 +310,7 @@ func TestImagePullAllPlatforms(t *testing.T) {
|
||||
defer cancel()
|
||||
|
||||
cs := client.ContentStore()
|
||||
img, err := client.Fetch(ctx, "docker.io/library/busybox:latest")
|
||||
img, err := client.Fetch(ctx, "k8s.gcr.io/pause:3.4.1")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -358,7 +358,9 @@ func TestImagePullSomePlatforms(t *testing.T) {
|
||||
opts = append(opts, WithPlatform(platform))
|
||||
}
|
||||
|
||||
img, err := client.Fetch(ctx, "k8s.gcr.io/pause:3.4.1", opts...)
|
||||
// Note: Must be different to the image used in TestImagePullAllPlatforms
|
||||
// or it will see the content pulled by that, and fail.
|
||||
img, err := client.Fetch(ctx, "k8s.gcr.io/pause:3.2", opts...)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user