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>
This commit is contained in:
Paweł Gronowski 2023-09-08 12:02:01 +02:00
parent 152036f0aa
commit 4982c70db4
No known key found for this signature in database
GPG key ID: B85EFCFE26DEF92A

View file

@ -12,6 +12,7 @@ import (
"github.com/docker/docker/pkg/stringid"
"gotest.tools/v3/assert"
"gotest.tools/v3/icmd"
"gotest.tools/v3/skip"
)
type DockerCLIRmiSuite struct {
@ -303,6 +304,8 @@ RUN echo 2 #layer2
}
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(`
FROM busybox
RUN echo hello`))