}) Context("when there is NEITHER a docker image url NOR a droplet uri", func() { BeforeEach(func() { desiredAppReq.DockerImageUrl = "" desiredAppReq.DropletUri = "" }) It("should error", func() { Expect(err).To(MatchError(recipebuilder.ErrDropletSourceMissing)) }) }) Context("when there is no file descriptor limit", func() { BeforeEach(func() { desiredAppReq.FileDescriptors = 0 }) It("does not error", func() { Expect(err).NotTo(HaveOccurred()) }) It("sets a default FD limit on the run action", func() { parallelRunAction := desiredLRP.Action.CodependentAction Expect(parallelRunAction.Actions).To(HaveLen(1)) runAction := parallelRunAction.Actions[0].RunAction Expect(runAction.ResourceLimits.Nofile).NotTo(BeNil()) Expect(*runAction.ResourceLimits.Nofile).To(Equal(recipebuilder.DefaultFileDescriptorLimit)) })