testconfig "github.com/cloudfoundry/cli/testhelpers/configuration" testterm "github.com/cloudfoundry/cli/testhelpers/terminal" . "github.com/cloudfoundry/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("CreateUserProvidedService", func() { var ( ui *testterm.FakeUI configRepo coreconfig.Repository serviceInstanceRepo *apifakes.FakeUserProvidedServiceInstanceRepository cmd commandregistry.Command deps commandregistry.Dependency factory *requirementsfakes.FakeFactory flagContext flags.FlagContext loginRequirement requirements.Requirement targetedSpaceRequirement requirements.Requirement minAPIVersionRequirement requirements.Requirement ) BeforeEach(func() { ui = new(testterm.FakeUI) configRepo = testconfig.NewRepositoryWithDefaults() serviceInstanceRepo = new(apifakes.FakeUserProvidedServiceInstanceRepository) repoLocator := deps.RepoLocator.SetUserProvidedServiceInstanceRepository(serviceInstanceRepo) deps = commandregistry.Dependency{ UI: ui,
testconfig "github.com/cloudfoundry/cli/testhelpers/configuration" testterm "github.com/cloudfoundry/cli/testhelpers/terminal" . "github.com/cloudfoundry/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("UpdateUserProvidedService", func() { var ( ui *testterm.FakeUI configRepo coreconfig.Repository serviceInstanceRepo *apifakes.FakeUserProvidedServiceInstanceRepository cmd commandregistry.Command deps commandregistry.Dependency factory *requirementsfakes.FakeFactory flagContext flags.FlagContext loginRequirement requirements.Requirement minAPIVersionRequirement requirements.Requirement serviceInstanceRequirement *requirementsfakes.FakeServiceInstanceRequirement ) BeforeEach(func() { ui = &testterm.FakeUI{} configRepo = testconfig.NewRepositoryWithDefaults() serviceInstanceRepo = new(apifakes.FakeUserProvidedServiceInstanceRepository) repoLocator := deps.RepoLocator.SetUserProvidedServiceInstanceRepository(serviceInstanceRepo) deps = commandregistry.Dependency{ UI: ui,