}, models.ManifestRoute{ Route: "other-route-name.example.com", }, }, }, } }) Context("and 'hosts' is provided", func() { BeforeEach(func() { apps[0].Hosts = &[]string{"host-name"} }) It("returns an error", func() { errs := actor.ValidateAppParams(apps) Expect(errs).To(HaveLen(1)) Expect(errs[0].Error()).To(Equal("application my-app must not be configured with both 'routes' and 'hosts'")) }) }) Context("and 'domains' is provided", func() { BeforeEach(func() { apps[0].Domains = &[]string{"domain-name"} }) It("returns an error", func() { errs := actor.ValidateAppParams(apps) Expect(errs).To(HaveLen(1)) Expect(errs[0].Error()).To(Equal("application my-app must not be configured with both 'routes' and 'domains'")) })