github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/test/e2e/container_inspect_test.go (about) 1 package integration 2 3 import ( 4 "os" 5 6 "github.com/containers/podman/v2/pkg/annotations" 7 . "github.com/containers/podman/v2/test/utils" 8 . "github.com/onsi/ginkgo" 9 . "github.com/onsi/gomega" 10 ) 11 12 var _ = Describe("Podman container inspect", func() { 13 var ( 14 tempdir string 15 err error 16 podmanTest *PodmanTestIntegration 17 ) 18 19 BeforeEach(func() { 20 tempdir, err = CreateTempDirInTempDir() 21 if err != nil { 22 os.Exit(1) 23 } 24 podmanTest = PodmanTestCreate(tempdir) 25 podmanTest.Setup() 26 podmanTest.SeedImages() 27 }) 28 29 AfterEach(func() { 30 podmanTest.Cleanup() 31 f := CurrentGinkgoTestDescription() 32 processTestResult(f) 33 }) 34 35 It("podman inspect a container for the container manager annotation", func() { 36 const testContainer = "container-inspect-test-1" 37 setup := podmanTest.RunTopContainer(testContainer) 38 setup.WaitWithDefaultTimeout() 39 Expect(setup.ExitCode()).To(Equal(0)) 40 41 data := podmanTest.InspectContainer(testContainer) 42 Expect(data[0].Config.Annotations[annotations.ContainerManager]). 43 To(Equal(annotations.ContainerManagerLibpod)) 44 }) 45 })