Use image lists instead of hardcoded images

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2022-07-25 10:54:17 -07:00
parent 552d763447
commit 2ae5f405d2
3 changed files with 7 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ import (
. "github.com/containerd/containerd"
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/images"
imagelist "github.com/containerd/containerd/integration/images"
"github.com/containerd/containerd/leases"
"github.com/opencontainers/image-spec/identity"
)
@@ -55,7 +56,7 @@ func TestLeaseResources(t *testing.T) {
defer ls.Delete(ctx, l, leases.SynchronousDelete)
// step 1: download image
imageName := "k8s.gcr.io/pause:3.7"
imageName := imagelist.PauseImage
image, err := client.Pull(ctx, imageName, WithPullUnpack, WithPullSnapshotter(snapshotterName))
if err != nil {