github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/integration/v6/isolated/feature_flags_command_test.go (about)

     1  package isolated
     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("feature-flags command", func() {
    12  	BeforeEach(func() {
    13  		helpers.LoginCF()
    14  	})
    15  
    16  	It("displays feature flag settings", func() {
    17  		session := helpers.CF("feature-flags")
    18  		Eventually(session).Should(Say("Retrieving status of all flagged features as"))
    19  		Eventually(session).Should(Say(`user_org_creation\s+(dis|en)abled`))
    20  		Eventually(session).Should(Say(`app_scaling\s+(dis|en)abled`))
    21  		Eventually(session).Should(Say(`service_instance_creation\s+(dis|en)abled`))
    22  		Eventually(session).Should(Exit(0))
    23  	})
    24  })