github.com/containers/podman/v5@v5.1.0-rc1/test/e2e/tree_test.go (about) 1 package integration 2 3 import ( 4 . "github.com/containers/podman/v5/test/utils" 5 . "github.com/onsi/ginkgo/v2" 6 . "github.com/onsi/gomega" 7 ) 8 9 var _ = Describe("Podman image tree", func() { 10 11 BeforeEach(func() { 12 podmanTest.AddImageToRWStore(BB) 13 }) 14 15 It("podman image tree", func() { 16 SkipIfRemote("podman-image-tree is not supported for remote clients") 17 podmanTest.AddImageToRWStore(CIRROS_IMAGE) 18 dockerfile := `FROM quay.io/libpod/cirros:latest 19 RUN mkdir hello 20 RUN touch test.txt 21 ENV foo=bar 22 ` 23 podmanTest.BuildImage(dockerfile, "test:latest", "true") 24 25 session := podmanTest.Podman([]string{"image", "tree", "test:latest"}) 26 session.WaitWithDefaultTimeout() 27 Expect(session).Should(ExitCleanly()) 28 session = podmanTest.Podman([]string{"image", "tree", "--whatrequires", "quay.io/libpod/cirros:latest"}) 29 session.WaitWithDefaultTimeout() 30 Expect(session).Should(ExitCleanly()) 31 32 session = podmanTest.Podman([]string{"rmi", "test:latest"}) 33 session.WaitWithDefaultTimeout() 34 Expect(session).Should(ExitCleanly()) 35 session = podmanTest.Podman([]string{"rmi", "quay.io/libpod/cirros:latest"}) 36 session.WaitWithDefaultTimeout() 37 Expect(session).Should(ExitCleanly()) 38 }) 39 })