github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/test/e2e/negative_test.go (about) 1 package integration 2 3 import ( 4 "os" 5 6 . "github.com/hanks177/podman/v4/test/utils" 7 . "github.com/onsi/ginkgo" 8 . "github.com/onsi/gomega" 9 ) 10 11 var _ = Describe("Podman negative command-line", func() { 12 var ( 13 tempdir string 14 err error 15 podmanTest *PodmanTestIntegration 16 ) 17 18 BeforeEach(func() { 19 tempdir, err = CreateTempDirInTempDir() 20 if err != nil { 21 os.Exit(1) 22 } 23 podmanTest = PodmanTestCreate(tempdir) 24 }) 25 26 AfterEach(func() { 27 podmanTest.Cleanup() 28 f := CurrentGinkgoTestDescription() 29 processTestResult(f) 30 31 }) 32 33 It("podman snuffleupagus exits non-zero", func() { 34 session := podmanTest.Podman([]string{"snuffleupagus"}) 35 session.WaitWithDefaultTimeout() 36 Expect(session).To(ExitWithError()) 37 }) 38 })