github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/test/e2e/negative_test.go (about) 1 package integration 2 3 import ( 4 "os" 5 6 . "github.com/containers/podman/v2/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 })