Use image lists in client tests
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
@@ -25,6 +25,7 @@ import (
|
||||
|
||||
"github.com/containerd/containerd"
|
||||
"github.com/containerd/containerd/errdefs"
|
||||
"github.com/containerd/containerd/integration/images"
|
||||
"github.com/containerd/containerd/namespaces"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -33,7 +34,7 @@ import (
|
||||
|
||||
// Test to test the CRI plugin should see image pulled into containerd directly.
|
||||
func TestContainerdImage(t *testing.T) {
|
||||
var testImage = GetImage(BusyBox)
|
||||
var testImage = images.Get(images.BusyBox)
|
||||
ctx := context.Background()
|
||||
|
||||
t.Logf("make sure the test image doesn't exist in the cri plugin")
|
||||
@@ -150,7 +151,7 @@ func TestContainerdImage(t *testing.T) {
|
||||
|
||||
// Test image managed by CRI plugin shouldn't be affected by images in other namespaces.
|
||||
func TestContainerdImageInOtherNamespaces(t *testing.T) {
|
||||
var testImage = GetImage(BusyBox)
|
||||
var testImage = images.Get(images.BusyBox)
|
||||
ctx := context.Background()
|
||||
|
||||
t.Logf("make sure the test image doesn't exist in the cri plugin")
|
||||
|
Reference in New Issue
Block a user