MCPcopy
hub / github.com/cloudfoundry/cli / createServiceBrokerRepo

Function createServiceBrokerRepo

cf/api/service_brokers_test.go:349–356  ·  view source on GitHub ↗
(requests ...testnet.TestRequest)

Source from the content-addressed store, hash-verified

347})
348
349func createServiceBrokerRepo(requests ...testnet.TestRequest) (ts *httptest.Server, handler *testnet.TestHandler, repo ServiceBrokerRepository) {
350 ts, handler = testnet.NewServer(requests)
351 configRepo := testconfig.NewRepositoryWithDefaults()
352 configRepo.SetAPIEndpoint(ts.URL)
353 gateway := net.NewCloudControllerGateway(configRepo, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "")
354 repo = NewCloudControllerServiceBrokerRepository(configRepo, gateway)
355 return
356}

Callers 1

Calls 2

SetAPIEndpointMethod · 0.65

Tested by

no test coverage detected