github.com/LukasHeimann/cloudfoundrycli/v8@v8.4.4/integration/helpers/app_test.go (about)

     1  package helpers_test
     2  
     3  import (
     4  	"github.com/LukasHeimann/cloudfoundrycli/v8/integration/helpers"
     5  	. "github.com/onsi/ginkgo"
     6  	. "github.com/onsi/gomega"
     7  	. "github.com/onsi/gomega/gexec"
     8  )
     9  
    10  func ExampleWithHelloWorldApp() {
    11  	var appName string
    12  
    13  	When("the app exists", func() {
    14  		BeforeEach(func() {
    15  			appName = helpers.PrefixedRandomName("app")
    16  
    17  			helpers.WithHelloWorldApp(func(appDir string) {
    18  				Eventually(helpers.CustomCF(helpers.CFEnv{WorkingDirectory: appDir}, "push", appName)).Should(Exit(0))
    19  			})
    20  		})
    21  	})
    22  }