github.com/loafoe/cli@v7.1.0+incompatible/integration/v6/push/resource_matching_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("resource matching", func() { 12 var ( 13 appName string 14 ) 15 16 BeforeEach(func() { 17 appName = helpers.NewAppName() 18 }) 19 20 When("the app has all of it's resources matched", func() { 21 It("does not display the progress bar", func() { 22 helpers.WithNoResourceMatchedApp(func(dir string) { 23 session := helpers.CustomCF(helpers.CFEnv{WorkingDirectory: dir}, PushCommandName, appName, "--no-start") 24 Eventually(session).Should(Say(`\+\s+name:\s+%s`, appName)) 25 Eventually(session).Should(Exit(0)) 26 27 session = helpers.CustomCF(helpers.CFEnv{WorkingDirectory: dir}, PushCommandName, appName, "-b", "staticfile_buildpack") 28 Eventually(session).Should(Say(`\s+name:\s+%s`, appName)) 29 Eventually(session).Should(Say("All files found in remote cache; nothing to upload.")) 30 Eventually(session).Should(Exit(0)) 31 }) 32 33 session := helpers.CF("app", appName) 34 Eventually(session).Should(Say(`name:\s+%s`, appName)) 35 Eventually(session).Should(Exit(0)) 36 }) 37 }) 38 })