本文整理匯總了Golang中github.com/cloudfoundry/cli/testhelpers/configuration.NewRepositoryWithDefaults函數的典型用法代碼示例。如果您正苦於以下問題:Golang NewRepositoryWithDefaults函數的具體用法?Golang NewRepositoryWithDefaults怎麽用?Golang NewRepositoryWithDefaults使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了NewRepositoryWithDefaults函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: TestEnvironmentvariablegroup
func TestEnvironmentvariablegroup(t *testing.T) {
config := configuration.NewRepositoryWithDefaults()
i18n.T = i18n.Init(config, &detection.JibberJabberDetector{})
RegisterFailHandler(Fail)
RunSpecs(t, "Environmentvariablegroup Suite")
}
示例2: callUnsetSpaceRole
func callUnsetSpaceRole(args []string, spaceRepo *testapi.FakeSpaceRepository, userRepo *testapi.FakeUserRepository, requirementsFactory *testreq.FakeReqFactory) (*testterm.FakeUI, bool) {
ui := &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewUnsetSpaceRole(ui, config, spaceRepo, userRepo)
passed := testcmd.RunCommand(cmd, args, requirementsFactory)
return ui, passed
}
示例3: TestFeatureflag
func TestFeatureflag(t *testing.T) {
config := configuration.NewRepositoryWithDefaults()
i18n.T = i18n.Init(config)
RegisterFailHandler(Fail)
RunSpecs(t, "FeatureFlag Suite")
}
示例4: TestPluginRepo
func TestPluginRepo(t *testing.T) {
config := configuration.NewRepositoryWithDefaults()
i18n.T = i18n.Init(config)
RegisterFailHandler(Fail)
RunSpecs(t, "PluginRepo Suite")
}
示例5: callDeleteOrphanedRoutes
func callDeleteOrphanedRoutes(confirmation string, args []string, reqFactory *testreq.FakeReqFactory, routeRepo *testapi.FakeRouteRepository) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{Inputs: []string{confirmation}}
configRepo := testconfig.NewRepositoryWithDefaults()
cmd := NewDeleteOrphanedRoutes(ui, configRepo, routeRepo)
testcmd.RunCommand(cmd, args, reqFactory)
return
}
示例6: TestEnvironmentVariableGroups
func TestEnvironmentVariableGroups(t *testing.T) {
config := configuration.NewRepositoryWithDefaults()
i18n.T = i18n.Init(config)
RegisterFailHandler(Fail)
RunSpecs(t, "EnvironmentVariableGroups Suite")
}
示例7: callCreateServiceBroker
func callCreateServiceBroker(args []string, requirementsFactory *testreq.FakeReqFactory, serviceBrokerRepo *testapi.FakeServiceBrokerRepo) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewCreateServiceBroker(ui, config, serviceBrokerRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
示例8: callOrgUsers
func callOrgUsers(args []string, requirementsFactory *testreq.FakeReqFactory, userRepo *testapi.FakeUserRepository) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewOrgUsers(ui, config, userRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
示例9: TestServicebroker
func TestServicebroker(t *testing.T) {
config := configuration.NewRepositoryWithDefaults()
i18n.T = i18n.Init(config)
RegisterFailHandler(Fail)
RunSpecs(t, "Servicebroker Suite")
}
示例10: TestServicekey
func TestServicekey(t *testing.T) {
config := configuration.NewRepositoryWithDefaults()
i18n.T = i18n.Init(config, &detection.JibberJabberDetector{})
RegisterFailHandler(Fail)
RunSpecs(t, "Servicekey Suite")
}
示例11: callStop
func callStop(args []string, requirementsFactory *testreq.FakeReqFactory, appRepo api.ApplicationRepository) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
configRepo := testconfig.NewRepositoryWithDefaults()
cmd := NewStop(ui, configRepo, appRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
示例12: TestAuthentication
func TestAuthentication(t *testing.T) {
config := configuration.NewRepositoryWithDefaults()
i18n.T = i18n.Init(config)
RegisterFailHandler(Fail)
RunSpecs(t, "Authentication Suite")
}
示例13: callShowSpace
func callShowSpace(args []string, requirementsFactory *testreq.FakeReqFactory) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
config := testconfig.NewRepositoryWithDefaults()
cmd := NewShowSpace(ui, config)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
示例14: callMapRoute
func callMapRoute(args []string, requirementsFactory *testreq.FakeReqFactory, routeRepo *testapi.FakeRouteRepository, createRoute *testcmd.FakeRouteCreator) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
configRepo := testconfig.NewRepositoryWithDefaults()
cmd := NewMapRoute(ui, configRepo, routeRepo, createRoute)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
示例15: TestSecurityGroupSpaces
func TestSecurityGroupSpaces(t *testing.T) {
config := configuration.NewRepositoryWithDefaults()
i18n.T = i18n.Init(config)
RegisterFailHandler(Fail)
RunSpecs(t, "SecurityGroupSpaces Suite")
}