It("still downloads the lifecycle, since we need it for the launcher", func() { downloadDestinations := []string{} for _, dep := range desiredLRP.CachedDependencies { if dep != nil { downloadDestinations = append(downloadDestinations, dep.To) } } Expect(downloadDestinations).To(ContainElement("/tmp/lifecycle")) }) }) Context("when allow ssh is true", func() { BeforeEach(func() { desiredAppReq.AllowSSH = true keyPairChan := make(chan keys.KeyPair, 2) fakeHostKeyPair := &fake_keys.FakeKeyPair{} fakeHostKeyPair.PEMEncodedPrivateKeyReturns("pem-host-private-key") fakeHostKeyPair.FingerprintReturns("host-fingerprint") fakeUserKeyPair := &fake_keys.FakeKeyPair{} fakeUserKeyPair.AuthorizedKeyReturns("authorized-user-key") fakeUserKeyPair.PEMEncodedPrivateKeyReturns("pem-user-private-key") keyPairChan <- fakeHostKeyPair keyPairChan <- fakeUserKeyPair fakeKeyFactory.NewKeyPairStub = func(bits int) (keys.KeyPair, error) {