func init() { command_registry.Register(&Restart{}) }
func init() { command_registry.Register(&ShowOrg{}) }
func init() { command_registry.Register(&CreateServiceBroker{}) }
func init() { command_registry.Register(&OrgUsers{}) }
func init() { command_registry.Register(&RenameServiceBroker{}) }
func init() { command_registry.Register(&ListOrgs{}) }
func init() { command_registry.Register(&UnsetSpaceRole{}) }
func init() { command_registry.Register(&ShowFeatureFlag{}) }
routeRepo *testapi.FakeRouteRepository requirementsFactory *testreq.FakeReqFactory routeCreator *routeCmdFakes.FakeRouteCreator OriginalCreateRoute command_registry.Command deps command_registry.Dependency ) updateCommandDependency := func(pluginCall bool) { deps.Ui = ui deps.RepoLocator = deps.RepoLocator.SetRouteRepository(routeRepo) deps.Config = configRepo //save original create-route and restore later OriginalCreateRoute = command_registry.Commands.FindCommand("create-route") //inject fake 'CreateRoute' into registry command_registry.Register(routeCreator) command_registry.Commands.SetCommand(command_registry.Commands.FindCommand("map-route").SetDependency(deps, pluginCall)) } BeforeEach(func() { ui = new(testterm.FakeUI) configRepo = testconfig.NewRepositoryWithDefaults() routeRepo = new(testapi.FakeRouteRepository) routeCreator = &routeCmdFakes.FakeRouteCreator{} requirementsFactory = new(testreq.FakeReqFactory) }) AfterEach(func() { command_registry.Register(OriginalCreateRoute) })
func init() { command_registry.Register(&ListServiceAuthTokens{}) }
func init() { command_registry.Register(&PluginInstall{}) }
func init() { command_registry.Register(&DeleteRoute{}) }
func init() { command_registry.Register(&RouterGroups{}) }
func init() { command_registry.Register(&DisableSSH{}) }
func init() { command_registry.Register(&CreateAppManifest{}) }
func init() { command_registry.Register(&DeleteServiceAuthTokenFields{}) }
func init() { command_registry.Register(&ListSpaceQuotas{}) }
func init() { command_registry.Register(&MarketplaceServices{}) }
func init() { command_registry.Register(&DisallowSpaceSSH{}) }
appInstancesRepo *testAppInstanaces.FakeAppInstancesRepository appRepo *testApplication.FakeApplicationRepository OriginalAppCommand command_registry.Command deps command_registry.Dependency displayApp *appCmdFakes.FakeAppDisplayer ) updateCommandDependency := func(logsRepo api.LogsRepository) { deps.Ui = ui deps.Config = configRepo deps.RepoLocator = deps.RepoLocator.SetLogsRepository(logsRepo) deps.RepoLocator = deps.RepoLocator.SetApplicationRepository(appRepo) deps.RepoLocator = deps.RepoLocator.SetAppInstancesRepository(appInstancesRepo) //inject fake 'CreateRoute' into registry command_registry.Register(displayApp) command_registry.Commands.SetCommand(command_registry.Commands.FindCommand("start").SetDependency(deps, false)) } var mutex = &sync.Mutex{} getInstance := func(appGuid string) (instances []models.AppInstanceFields, apiErr error) { if len(defaultInstanceResponses) > 0 { instances = defaultInstanceResponses[0] if len(defaultInstanceResponses) > 1 { defaultInstanceResponses = defaultInstanceResponses[1:] } } if len(defaultInstanceErrorCodes) > 0 { errorCode := defaultInstanceErrorCodes[0]
func init() { command_registry.Register(&AddPluginRepo{}) }
func init() { command_registry.Register(&UpdateUserProvidedService{}) }
func init() { command_registry.Register(&DisableServiceAccess{}) }
func init() { command_registry.Register(&CreateSpaceQuota{}) }
func init() { command_registry.Register(&ShowService{}) }
func init() { command_registry.Register(&RepoPlugins{}) }
func init() { command_registry.Register(&RemovePluginRepo{}) }
func init() { command_registry.Register(&ShowApp{}) }
func init() { command_registry.Register(&DeleteSharedDomain{}) }
func init() { command_registry.Register(&RenameBuildpack{}) }