github.com/containers/podman/v5@v5.1.0-rc1/test/e2e/negative_test.go (about) 1 package integration 2 3 import ( 4 "fmt" 5 6 . "github.com/containers/podman/v5/test/utils" 7 . "github.com/onsi/ginkgo/v2" 8 . "github.com/onsi/gomega" 9 ) 10 11 var _ = Describe("Podman negative command-line", func() { 12 13 It("podman snuffleupagus exits non-zero", func() { 14 session := podmanTest.Podman([]string{"snuffleupagus"}) 15 session.WaitWithDefaultTimeout() 16 cmdName := "podman" 17 if IsRemote() { 18 cmdName += "-remote" 19 } 20 Expect(session).To(ExitWithError(125, fmt.Sprintf("unrecognized command `%s snuffleupagus`", cmdName))) 21 }) 22 })