broker_builder "github.com/nttlabs/cli/cf/actors/broker_builder/fakes" service_builder "github.com/nttlabs/cli/cf/actors/service_builder/fakes" organization_fakes "github.com/nttlabs/cli/cf/api/organizations/fakes" "github.com/nttlabs/cli/cf/errors" "github.com/nttlabs/cli/cf/models" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Services", func() { var ( actor actors.ServiceActor brokerBuilder *broker_builder.FakeBrokerBuilder serviceBuilder *service_builder.FakeServiceBuilder orgRepo *organization_fakes.FakeOrganizationRepository serviceBroker1 models.ServiceBroker serviceBroker2 models.ServiceBroker service1 models.ServiceOffering ) BeforeEach(func() { orgRepo = &organization_fakes.FakeOrganizationRepository{} brokerBuilder = &broker_builder.FakeBrokerBuilder{} serviceBuilder = &service_builder.FakeServiceBuilder{} actor = actors.NewServiceHandler(orgRepo, brokerBuilder, serviceBuilder) serviceBroker1 = models.ServiceBroker{Guid: "my-service-broker-guid1", Name: "my-service-broker1"} serviceBroker2 = models.ServiceBroker{Guid: "my-service-broker-guid2", Name: "my-service-broker2"}
var _ = Describe("Service Plans", func() { var ( actor actors.ServicePlanActor servicePlanRepo *testapi.FakeServicePlanRepo servicePlanVisibilityRepo *testapi.FakeServicePlanVisibilityRepository orgRepo *fake_orgs.FakeOrganizationRepository planBuilder *fake_plan_builder.FakePlanBuilder serviceBuilder *fake_service_builder.FakeServiceBuilder privateServicePlanVisibilityFields models.ServicePlanVisibilityFields publicServicePlanVisibilityFields models.ServicePlanVisibilityFields limitedServicePlanVisibilityFields models.ServicePlanVisibilityFields publicServicePlan models.ServicePlanFields privateServicePlan models.ServicePlanFields limitedServicePlan models.ServicePlanFields publicService models.ServiceOffering mixedService models.ServiceOffering privateService models.ServiceOffering publicAndLimitedService models.ServiceOffering org1 models.Organization org2 models.Organization visibility1 models.ServicePlanVisibilityFields ) BeforeEach(func() {
fake_service_builder "github.com/nttlabs/cli/cf/actors/service_builder/fakes" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Broker Builder", func() { var ( brokerBuilder broker_builder.BrokerBuilder serviceBuilder *fake_service_builder.FakeServiceBuilder brokerRepo *fakes.FakeServiceBrokerRepo serviceBroker1 models.ServiceBroker services models.ServiceOfferings service1 models.ServiceOffering service2 models.ServiceOffering service3 models.ServiceOffering publicServicePlan models.ServicePlanFields privateServicePlan models.ServicePlanFields ) BeforeEach(func() { brokerRepo = &fakes.FakeServiceBrokerRepo{} serviceBuilder = &fake_service_builder.FakeServiceBuilder{} brokerBuilder = broker_builder.NewBuilder(brokerRepo, serviceBuilder) serviceBroker1 = models.ServiceBroker{Guid: "my-service-broker-guid", Name: "my-service-broker"}