Use new metadata store.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-07-28 03:51:24 +00:00
parent 4317e6119a
commit 7b16a35287
35 changed files with 791 additions and 809 deletions

View File

@@ -25,12 +25,12 @@ import (
"golang.org/x/net/context"
"k8s.io/kubernetes/pkg/kubelet/apis/cri/v1alpha1/runtime"
"github.com/kubernetes-incubator/cri-containerd/pkg/metadata"
imagestore "github.com/kubernetes-incubator/cri-containerd/pkg/store/image"
)
func TestListImages(t *testing.T) {
c := newTestCRIContainerdService()
imagesInStore := []metadata.ImageMetadata{
imagesInStore := []imagestore.Image{
{
ID: "test-id-1",
ChainID: "test-chainid-1",
@@ -87,7 +87,7 @@ func TestListImages(t *testing.T) {
}
for _, i := range imagesInStore {
assert.NoError(t, c.imageMetadataStore.Create(i))
c.imageStore.Add(i)
}
resp, err := c.ListImages(context.Background(), &runtime.ListImagesRequest{})