Update checkImages to accept images.MediaTypeDockerSchema2Manifest
@@ -278,7 +278,8 @@ func checkImages(t *testing.T, target digest.Digest, actual []images.Image, name
t.Fatalf("image(%d) unexpected name %q, expected %q", i, actual[i].Name, n)
}
- if actual[i].Target.MediaType != ocispec.MediaTypeImageManifest {
+ if actual[i].Target.MediaType != ocispec.MediaTypeImageManifest &&
+ actual[i].Target.MediaType != images.MediaTypeDockerSchema2Manifest {
t.Fatalf("image(%d) unexpected media type: %s", i, actual[i].Target.MediaType)
}
}
