testterm "code.cloudfoundry.org/cli/testhelpers/terminal" . "code.cloudfoundry.org/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("DeleteRoute", func() { var ( ui *testterm.FakeUI configRepo coreconfig.Repository routeRepo *apifakes.FakeRouteRepository cmd commandregistry.Command deps commandregistry.Dependency factory *requirementsfakes.FakeFactory flagContext flags.FlagContext loginRequirement requirements.Requirement domainRequirement *requirementsfakes.FakeDomainRequirement minAPIVersionRequirement requirements.Requirement fakeDomain models.DomainFields ) BeforeEach(func() { ui = &testterm.FakeUI{} configRepo = testconfig.NewRepositoryWithDefaults() routeRepo = new(apifakes.FakeRouteRepository) repoLocator := deps.RepoLocator.SetRouteRepository(routeRepo)
testterm "code.cloudfoundry.org/cli/testhelpers/terminal" . "code.cloudfoundry.org/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("CreateRoute", func() { var ( ui *testterm.FakeUI routeRepo *apifakes.FakeRouteRepository configRepo coreconfig.Repository cmd commandregistry.Command deps commandregistry.Dependency factory *requirementsfakes.FakeFactory flagContext flags.FlagContext spaceRequirement *requirementsfakes.FakeSpaceRequirement domainRequirement *requirementsfakes.FakeDomainRequirement minAPIVersionRequirement requirements.Requirement ) BeforeEach(func() { ui = &testterm.FakeUI{} configRepo = testconfig.NewRepositoryWithDefaults() routeRepo = new(apifakes.FakeRouteRepository) repoLocator := deps.RepoLocator.SetRouteRepository(routeRepo) deps = commandregistry.Dependency{ UI: ui,