github.com/sleungcy-sap/cli@v7.1.0+incompatible/integration/v7/isolated/unbind_route_service_command_test.go (about)

     1  package isolated
     2  
     3  import (
     4  	"regexp"
     5  
     6  	"code.cloudfoundry.org/cli/integration/helpers"
     7  	. "github.com/onsi/ginkgo"
     8  	. "github.com/onsi/gomega"
     9  	. "github.com/onsi/gomega/gbytes"
    10  	. "github.com/onsi/gomega/gexec"
    11  )
    12  
    13  var _ = Describe("unbind-route-service command", func() {
    14  	Describe("help", func() {
    15  		It("includes a description of the options", func() {
    16  			session := helpers.CF("help", "unbind-route-service")
    17  			Eventually(session).Should(Say("NAME:"))
    18  			Eventually(session).Should(Say("unbind-route-service - Unbind a service instance from an HTTP route"))
    19  			Eventually(session).Should(Say("USAGE:"))
    20  			Eventually(session).Should(Say(regexp.QuoteMeta("cf unbind-route-service DOMAIN [--hostname HOSTNAME] [--path PATH] SERVICE_INSTANCE [-f]")))
    21  			Eventually(session).Should(Say("EXAMPLES:"))
    22  			Eventually(session).Should(Say("cf unbind-route-service example.com --hostname myapp --path foo myratelimiter"))
    23  			Eventually(session).Should(Say("ALIAS:"))
    24  			Eventually(session).Should(Say("urs"))
    25  			Eventually(session).Should(Say("OPTIONS:"))
    26  			Eventually(session).Should(Say(`-f\s+Force unbinding without confirmation`))
    27  			Eventually(session).Should(Say(`--hostname, -n\s+Hostname used in combination with DOMAIN to specify the route to unbind`))
    28  			Eventually(session).Should(Say(`--path\s+Path used in combination with HOSTNAME and DOMAIN to specify the route to unbind`))
    29  			Eventually(session).Should(Say("SEE ALSO:"))
    30  			Eventually(session).Should(Say("delete-service, routes, services"))
    31  			Eventually(session).Should(Exit(0))
    32  		})
    33  	})
    34  })