github.com/arunkumar7540/cli@v6.45.0+incompatible/integration/v7/push/experimental_warning_test.go (about)

     1  package push
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/integration/helpers"
     5  	. "github.com/onsi/ginkgo"
     6  	. "github.com/onsi/gomega"
     7  	. "github.com/onsi/gomega/gbytes"
     8  	. "github.com/onsi/gomega/gexec"
     9  )
    10  
    11  var _ = Describe("the experimental warning", func() {
    12  	var (
    13  		appName string
    14  	)
    15  
    16  	BeforeEach(func() {
    17  		appName = helpers.PrefixedRandomName("app")
    18  	})
    19  
    20  	It("displays the experimental warning", func() {
    21  		session := helpers.CF(PushCommandName, appName)
    22  		Eventually(session.Err).Should(Say("This command is in EXPERIMENTAL stage and may change without notice"))
    23  		Eventually(session).Should(Exit())
    24  	})
    25  })