(req testnet.TestRequest)
| 55 | }) |
| 56 | |
| 57 | func createPasswordRepo(req testnet.TestRequest) (passwordServer *httptest.Server, handler *testnet.TestHandler, repo Repository) { |
| 58 | passwordServer, handler = testnet.NewServer([]testnet.TestRequest{req}) |
| 59 | |
| 60 | configRepo := testconfig.NewRepositoryWithDefaults() |
| 61 | configRepo.SetUaaEndpoint(passwordServer.URL) |
| 62 | gateway := net.NewCloudControllerGateway(configRepo, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "") |
| 63 | repo = NewCloudControllerRepository(configRepo, gateway) |
| 64 | return |
| 65 | } |
no test coverage detected