Expect(*appRepo.CreatedAppParams().StackGuid).To(Equal("custom-linux-guid")) Expect(*appRepo.CreatedAppParams().HealthCheckTimeout).To(Equal(1)) Expect(*appRepo.CreatedAppParams().BuildpackUrl).To(Equal("https://github.com/heroku/heroku-buildpack-play.git")) Expect(domainRepo.FindByNameInOrgName).To(Equal("bar.cf-app.com")) Expect(domainRepo.FindByNameInOrgGuid).To(Equal("my-org-guid")) Expect(routeRepo.CreatedHost).To(Equal("my-hostname")) Expect(routeRepo.CreatedDomainGuid).To(Equal("bar-domain-guid")) Expect(routeRepo.BoundAppGuid).To(Equal("my-new-app-guid")) Expect(routeRepo.BoundRouteGuid).To(Equal("my-hostname-route-guid")) appGuid, _, _ := actor.UploadAppArgsForCall(0) Expect(appGuid).To(Equal("my-new-app-guid")) Expect(starter.ApplicationStartCallCount()).To(Equal(0)) }) Context("when there is a shared domain", func() { It("creates a route with the shared domain and maps it to the app", func() { privateDomain := models.DomainFields{ Shared: false, Name: "private.cf-app.com", Guid: "private-domain-guid", } sharedDomain := models.DomainFields{ Name: "shared.cf-app.com", Shared: true, Guid: "shared-domain-guid", }