github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+incompatible/integration/shared/global/marketplace_command_test.go (about) 1 package global 2 3 import ( 4 "code.cloudfoundry.org/cli/integration/helpers" 5 6 . "github.com/onsi/ginkgo" 7 . "github.com/onsi/gomega" 8 . "github.com/onsi/gomega/gbytes" 9 . "github.com/onsi/gomega/gexec" 10 ) 11 12 var _ = Describe("marketplace command", func() { 13 When("an API endpoint is set", func() { 14 When("not logged in", func() { 15 When("there are no accessible services", func() { 16 BeforeEach(func() { 17 helpers.LogoutCF() 18 }) 19 20 It("displays a message that no services are available", func() { 21 session := helpers.CF("marketplace") 22 Eventually(session).Should(Say("OK")) 23 Eventually(session).Should(Say("\n\n")) 24 Eventually(session).Should(Say("No service offerings found")) 25 Eventually(session).Should(Exit(0)) 26 }) 27 }) 28 }) 29 }) 30 })