Explorar o código

Skip TestPullManifestList when using containerd

This test is very weird, the Size in the manifests that it creates is
wrong, graph drivers only print a warning in that case but containerd
fails because it verifies more things. The media types are also wrong in
the containerd case, the manifest list forces the media type to be
"schema2.MediaTypeManifest" but in the containerd case the media type is
an OCI one.

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Djordje Lukic hai 1 ano
pai
achega
3c2b06099d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      integration-cli/docker_cli_pull_local_test.go

+ 2 - 0
integration-cli/docker_cli_pull_local_test.go

@@ -18,6 +18,7 @@ import (
 	"github.com/opencontainers/go-digest"
 	"gotest.tools/v3/assert"
 	"gotest.tools/v3/icmd"
+	"gotest.tools/v3/skip"
 )
 
 // testPullImageWithAliases pulls a specific image tag and verifies that any aliases (i.e., other
@@ -283,6 +284,7 @@ func (s *DockerSchema1RegistrySuite) TestPullNoLayers(c *testing.T) {
 }
 
 func (s *DockerRegistrySuite) TestPullManifestList(c *testing.T) {
+	skip.If(c, testEnv.UsingSnapshotter(), "containerd knows how to pull manifest lists")
 	pushDigest, err := setupImage(c)
 	assert.NilError(c, err, "error setting up image")