{"Binding service", "app1-service", "app1", "my-org", "my-space", "my-user"}, {"OK"}, {"Binding service", "global-service", "app1", "my-org", "my-space", "my-user"}, {"OK"}, {"Creating", "app2"}, {"OK"}, {"Binding service", "app2-service", "app2", "my-org", "my-space", "my-user"}, {"OK"}, {"Binding service", "global-service", "app2", "my-org", "my-space", "my-user"}, {"OK"}, }) }) It("fails when the service instances can't be found", func() { routeRepo.FindByHostAndDomainErr = true serviceRepo.FindInstanceByNameErr = true manifestRepo.ReadManifestReturns.Manifest = manifestWithServicesAndEnv() callPush() testassert.SliceContains(ui.Outputs, testassert.Lines{ {"FAILED"}, {"Could not find service", "app1-service", "app1"}, }) }) It("uploads the application bits from the -p path", func() { appRepo.ReadNotFound = true callPush("-p", "../some/path-to/an-app", "app-with-path") Expect(appBitsRepo.UploadedDir).To(Equal("../some/path-to/an-app"))