github.com/containers/podman/v4@v4.9.4/test/e2e/system_dial_stdio_test.go (about)

     1  package integration
     2  
     3  import (
     4  	. "github.com/containers/podman/v4/test/utils"
     5  	. "github.com/onsi/ginkgo/v2"
     6  	. "github.com/onsi/gomega"
     7  	. "github.com/onsi/gomega/gexec"
     8  )
     9  
    10  var _ = Describe("podman system dial-stdio", func() {
    11  
    12  	It("podman system dial-stdio help", func() {
    13  		session := podmanTest.Podman([]string{"system", "dial-stdio", "--help"})
    14  		session.WaitWithDefaultTimeout()
    15  		Expect(session).Should(ExitCleanly())
    16  		Expect(session.OutputToString()).To(ContainSubstring("Examples: podman system dial-stdio"))
    17  	})
    18  
    19  	It("podman system dial-stdio while service is not running", func() {
    20  		if IsRemote() {
    21  			Skip("this test is only for non-remote")
    22  		}
    23  		session := podmanTest.Podman([]string{"system", "dial-stdio"})
    24  		session.WaitWithDefaultTimeout()
    25  		Expect(session).Should(Exit(125))
    26  		Expect(session.ErrorToString()).To(ContainSubstring("Error: failed to open connection to podman"))
    27  	})
    28  })