Describe("Delete LBs", func() { Describe("Usage", func() { It("returns string describing usage", func() { command := commands.DeleteLBs{} usageText := command.Usage() Expect(usageText).To(Equal(`Deletes load balancer(s) [--skip-if-missing] Skips deleting load balancer(s) if it is not attached (optional)`)) }) }) }) Describe("Destroy", func() { Describe("Usage", func() { It("returns string describing usage", func() { command := commands.Destroy{} usageText := command.Usage() Expect(usageText).To(Equal(`Tears down BOSH director infrastructure [--no-confirm] Do not ask for confirmation (optional) [--skip-if-missing] Gracefully exit if there is no state file (optional)`)) }) }) }) Describe("Usage", func() { Describe("Usage", func() { It("returns string describing usage", func() { command := commands.Usage{} usageText := command.Usage() Expect(usageText).To(Equal(`Prints helpful message for the given command`))
"github.com/cloudfoundry/bosh-bootloader/storage" . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" ) var _ = Describe("Destroy", func() { var ( destroy commands.Destroy boshDeleter *fakes.BOSHDeleter stackManager *fakes.StackManager infrastructureManager *fakes.InfrastructureManager vpcStatusChecker *fakes.VPCStatusChecker stringGenerator *fakes.StringGenerator logger *fakes.Logger keyPairDeleter *fakes.KeyPairDeleter certificateDeleter *fakes.CertificateDeleter awsCredentialValidator *fakes.AWSCredentialValidator stateStore *fakes.StateStore stateValidator *fakes.StateValidator stdin *bytes.Buffer ) BeforeEach(func() { stdin = bytes.NewBuffer([]byte{}) logger = &fakes.Logger{} vpcStatusChecker = &fakes.VPCStatusChecker{} stackManager = &fakes.StackManager{} infrastructureManager = &fakes.InfrastructureManager{}