Example #1
0
func init() {
	command_registry.Register(&Restart{})
}
func init() {
	command_registry.Register(&ShowOrg{})
}
Example #3
0
func init() {
	command_registry.Register(&CreateServiceBroker{})
}
func init() {
	command_registry.Register(&OrgUsers{})
}
Example #5
0
func init() {
	command_registry.Register(&RenameServiceBroker{})
}
Example #6
0
func init() {
	command_registry.Register(&ListOrgs{})
}
Example #7
0
func init() {
	command_registry.Register(&UnsetSpaceRole{})
}
Example #8
0
func init() {
	command_registry.Register(&ShowFeatureFlag{})
}
Example #9
0
		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{})
}
Example #11
0
func init() {
	command_registry.Register(&PluginInstall{})
}
Example #12
0
func init() {
	command_registry.Register(&DeleteRoute{})
}
Example #13
0
func init() {
	command_registry.Register(&RouterGroups{})
}
Example #14
0
func init() {
	command_registry.Register(&DisableSSH{})
}
Example #15
0
func init() {
	command_registry.Register(&CreateAppManifest{})
}
func init() {
	command_registry.Register(&DeleteServiceAuthTokenFields{})
}
Example #17
0
func init() {
	command_registry.Register(&ListSpaceQuotas{})
}
Example #18
0
func init() {
	command_registry.Register(&MarketplaceServices{})
}
func init() {
	command_registry.Register(&DisallowSpaceSSH{})
}
Example #20
0
		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]
Example #21
0
func init() {
	command_registry.Register(&AddPluginRepo{})
}
func init() {
	command_registry.Register(&UpdateUserProvidedService{})
}
func init() {
	command_registry.Register(&DisableServiceAccess{})
}
Example #24
0
func init() {
	command_registry.Register(&CreateSpaceQuota{})
}
Example #25
0
func init() {
	command_registry.Register(&ShowService{})
}
Example #26
0
func init() {
	command_registry.Register(&RepoPlugins{})
}
Example #27
0
func init() {
	command_registry.Register(&RemovePluginRepo{})
}
Example #28
0
func init() {
	command_registry.Register(&ShowApp{})
}
Example #29
0
func init() {
	command_registry.Register(&DeleteSharedDomain{})
}
Example #30
0
func init() {
	command_registry.Register(&RenameBuildpack{})
}