func (f *factory) loadSSHTunnelFactory() bisshtunnel.Factory { if f.sshTunnelFactory != nil { return f.sshTunnelFactory } f.sshTunnelFactory = bisshtunnel.NewFactory(f.logger) return f.sshTunnelFactory }
logger = boshlog.NewLogger(boshlog.LevelNone) fakeUUIDGenerator = fakeuuid.NewFakeGenerator() setupDeploymentStateService := biconfig.NewFileSystemDeploymentStateService(fs, fakeUUIDGenerator, logger, biconfig.DeploymentStatePath(deploymentManifestPath)) deploymentState, err := setupDeploymentStateService.Load() Expect(err).ToNot(HaveOccurred()) directorID = deploymentState.DirectorID fakeAgentIDGenerator = fakeuuid.NewFakeGenerator() fakeSHA1Calculator = fakebicrypto.NewFakeSha1Calculator() mockInstaller = mock_install.NewMockInstaller(mockCtrl) mockInstallerFactory = mock_install.NewMockInstallerFactory(mockCtrl) mockCloudFactory = mock_cloud.NewMockFactory(mockCtrl) sshTunnelFactory = bisshtunnel.NewFactory(logger) fakeRepoUUIDGenerator = fakeuuid.NewFakeGenerator() mockCloud = mock_cloud.NewMockCloud(mockCtrl) registryServerManager = biregistry.NewServerManager(logger) mockReleaseExtractor = mock_release.NewMockExtractor(mockCtrl) releaseManager = birel.NewManager(logger) mockStateBuilderFactory = mock_instance_state.NewMockBuilderFactory(mockCtrl) mockStateBuilder = mock_instance_state.NewMockBuilder(mockCtrl) mockState = mock_instance_state.NewMockState(mockCtrl) mockBlobstoreFactory = mock_blobstore.NewMockFactory(mockCtrl)