Explorar el Código

integration-cli: Skip TestRmiParentImageFail when using c8d snapshotters

With containerd image store the images don't depend on each other even
if they share the same content and it's totally fine to delete the
"parent" image.

The skip is necessary because deleting the "parent" image does not
produce an error with the c8d image store and deleting the `busybox`
image breaks other tests.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Paweł Gronowski hace 1 año
padre
commit
4982c70db4
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      integration-cli/docker_cli_rmi_test.go

+ 3 - 0
integration-cli/docker_cli_rmi_test.go

@@ -12,6 +12,7 @@ import (
 	"github.com/docker/docker/pkg/stringid"
 	"github.com/docker/docker/pkg/stringid"
 	"gotest.tools/v3/assert"
 	"gotest.tools/v3/assert"
 	"gotest.tools/v3/icmd"
 	"gotest.tools/v3/icmd"
+	"gotest.tools/v3/skip"
 )
 )
 
 
 type DockerCLIRmiSuite struct {
 type DockerCLIRmiSuite struct {
@@ -303,6 +304,8 @@ RUN echo 2 #layer2
 }
 }
 
 
 func (*DockerCLIRmiSuite) TestRmiParentImageFail(c *testing.T) {
 func (*DockerCLIRmiSuite) TestRmiParentImageFail(c *testing.T) {
+	skip.If(c, testEnv.UsingSnapshotter(), "image are independent when using the containerd image store")
+
 	buildImageSuccessfully(c, "test", build.WithDockerfile(`
 	buildImageSuccessfully(c, "test", build.WithDockerfile(`
 	FROM busybox
 	FROM busybox
 	RUN echo hello`))
 	RUN echo hello`))