)) }) }) }) Describe("Connecting to ssh server", func() { var testServer *httptest.Server AfterEach(func() { testServer.Close() }) BeforeEach(func() { fakeSecureShell = &testssh.FakeSecureShell{} deps.WilecardDependency = fakeSecureShell getRequest := testapi.NewCloudControllerTestRequest(testnet.TestRequest{ Method: "GET", Path: "/v2/info", Response: testnet.TestResponse{ Status: http.StatusOK, Body: getInfoResponseBody, }, }) testServer, _ = testnet.NewServer([]testnet.TestRequest{getRequest}) configRepo.SetApiEndpoint(testServer.URL) ccGateway = net.NewCloudControllerGateway(configRepo, time.Now, &testterm.FakeUI{}) deps.Gateways["cloud-controller"] = ccGateway })