. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" ) var _ = Describe("Create LBs", func() { Describe("Execute", func() { var ( command commands.CreateLBs certificateManager *fakes.CertificateManager infrastructureManager *fakes.InfrastructureManager boshClient *fakes.BOSHClient boshClientProvider *fakes.BOSHClientProvider availabilityZoneRetriever *fakes.AvailabilityZoneRetriever boshCloudConfigurator *fakes.BoshCloudConfigurator awsCredentialValidator *fakes.AWSCredentialValidator logger *fakes.Logger cloudConfigManager *fakes.CloudConfigManager certificateValidator *fakes.CertificateValidator guidGenerator *fakes.GuidGenerator stateStore *fakes.StateStore stateValidator *fakes.StateValidator incomingState storage.State ) BeforeEach(func() { certificateManager = &fakes.CertificateManager{} infrastructureManager = &fakes.InfrastructureManager{} availabilityZoneRetriever = &fakes.AvailabilityZoneRetriever{} boshCloudConfigurator = &fakes.BoshCloudConfigurator{} boshClient = &fakes.BOSHClient{}
It("returns string describing usage", func() { upCmd := commands.Up{} usageText := upCmd.Usage() Expect(usageText).To(Equal(`Deploys BOSH director on AWS --aws-access-key-id AWS Access Key ID to use (Defaults to environment variable BBL_AWS_ACCESS_KEY_ID) --aws-secret-access-key AWS Secret Access Key to use (Defaults to environment variable BBL_AWS_SECRET_ACCESS_KEY) --aws-region AWS region to use (Defaults to environment variable BBL_AWS_REGION)`)) }) }) }) Describe("Create LBs", func() { Describe("Usage", func() { It("returns string describing usage", func() { command := commands.CreateLBs{} usageText := command.Usage() Expect(usageText).To(Equal(`Attaches load balancer(s) with a certificate, key, and optional chain --type Load balancer(s) type. Valid options: "concourse" or "cf" --cert Path to SSL certificate --key Path to SSL certificate key [--chain] Path to SSL certificate chain (optional) [--skip-if-exists] Skips creating load balancer(s) if it is already attached (optional)`)) }) }) }) Describe("Update LBs", func() { Describe("Usage", func() { It("returns string describing usage", func() {