serviceRepo *testapi.FakeServiceRepo wordGenerator words.WordGenerator requirementsFactory *testreq.FakeReqFactory authRepo *testapi.FakeAuthenticationRepository ) BeforeEach(func() { manifestRepo = &testmanifest.FakeManifestRepository{} starter = &testcmd.FakeAppStarter{} stopper = &testcmd.FakeAppStopper{} serviceBinder = &testcmd.FakeAppBinder{} appRepo = &testapi.FakeApplicationRepository{} domainRepo = &testapi.FakeDomainRepository{} sharedDomain := maker.NewSharedDomainFields(maker.Overrides{"name": "foo.cf-app.com", "guid": "foo-domain-guid"}) domainRepo.ListDomainsForOrgDomains = []models.DomainFields{sharedDomain} routeRepo = &testapi.FakeRouteRepository{} stackRepo = &testapi.FakeStackRepository{} appBitsRepo = &testapi.FakeApplicationBitsRepository{CallbackZipSize: 1, CallbackFileCount: 1} serviceRepo = &testapi.FakeServiceRepo{} authRepo = &testapi.FakeAuthenticationRepository{} wordGenerator = testwords.NewFakeWordGenerator("laughing-cow") ui = new(testterm.FakeUI) configRepo = testconfig.NewRepositoryWithDefaults() requirementsFactory = &testreq.FakeReqFactory{LoginSuccess: true, TargetedSpaceSuccess: true} cmd = NewPush(ui, configRepo, manifestRepo, starter, stopper, serviceBinder, appRepo,
stackRepo *testapi.FakeStackRepository appBitsRepo *testapi.FakeApplicationBitsRepository serviceRepo *testapi.FakeServiceRepo wordGenerator words.WordGenerator ) BeforeEach(func() { manifestRepo = &testmanifest.FakeManifestRepository{} starter = &testcmd.FakeAppStarter{} stopper = &testcmd.FakeAppStopper{} binder = &testcmd.FakeAppBinder{} appRepo = &testapi.FakeApplicationRepository{} domainRepo = &testapi.FakeDomainRepository{} sharedDomain := maker.NewSharedDomainFields(maker.Overrides{"name": "foo.cf-app.com", "guid": "foo-domain-guid"}) domainRepo.ListDomainsForOrgDomains = []models.DomainFields{sharedDomain} routeRepo = &testapi.FakeRouteRepository{} stackRepo = &testapi.FakeStackRepository{} appBitsRepo = &testapi.FakeApplicationBitsRepository{CallbackZipSize: 1, CallbackFileCount: 1} serviceRepo = &testapi.FakeServiceRepo{} wordGenerator = testwords.NewFakeWordGenerator("laughing-cow") ui = new(testterm.FakeUI) configRepo = testconfig.NewRepositoryWithDefaults() cmd = NewPush(ui, configRepo, manifestRepo, starter, stopper, binder, appRepo, domainRepo, routeRepo, stackRepo, serviceRepo, appBitsRepo, wordGenerator) }) callPush := func(args ...string) { reqFactory := &testreq.FakeReqFactory{LoginSuccess: true, TargetedSpaceSuccess: true}