Ω(spec.User).Should(Equal("root")) Ω(spec.TTY).Should(Equal(&garden.TTYSpec{})) }) It("directs the process's stdout/stderr to the io config", func() { Ω(fakeContainer.RunCallCount()).Should(Equal(1)) _, io := fakeContainer.RunArgsForCall(0) Ω(io.Stdout).Should(Equal(stdoutBuf)) Ω(io.Stderr).Should(Equal(stderrBuf)) }) It("saves the process ID as a property", func() { Ω(fakeContainer.SetPropertyCallCount()).Should(Equal(1)) name, value := fakeContainer.SetPropertyArgsForCall(0) Ω(name).Should(Equal("concourse:task-process")) Ω(value).Should(Equal("42")) }) It("invokes the delegate's Started callback", func() { Ω(taskDelegate.StartedCallCount()).Should(Equal(1)) }) Context("when privileged", func() { BeforeEach(func() { privileged = true }) It("creates the container privileged", func() { Ω(fakeWorkerClient.CreateContainerCallCount()).Should(Equal(1))