mirror of
https://github.com/containers/podman.git
synced 2025-12-11 17:27:19 +08:00
First batch of resolutions to FIXMEs
Most of these are no longer relevant, just drop the comments. Most notable change: allow `podman kill` on paused containers. Works just fine when I test it. Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
@@ -128,6 +128,26 @@ var _ = Describe("Podman kill", func() {
|
||||
Expect(podmanTest.NumberOfContainersRunning()).To(Equal(0))
|
||||
})
|
||||
|
||||
It("podman kill paused container", func() {
|
||||
ctrName := "testctr"
|
||||
session := podmanTest.RunTopContainer(ctrName)
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
|
||||
pause := podmanTest.Podman([]string{"pause", ctrName})
|
||||
pause.WaitWithDefaultTimeout()
|
||||
Expect(pause).Should(Exit(0))
|
||||
|
||||
kill := podmanTest.Podman([]string{"kill", ctrName})
|
||||
kill.WaitWithDefaultTimeout()
|
||||
Expect(kill).Should(Exit(0))
|
||||
|
||||
inspect := podmanTest.Podman([]string{"inspect", "-f", "{{.State.Status}}", ctrName})
|
||||
inspect.WaitWithDefaultTimeout()
|
||||
Expect(inspect).Should(Exit(0))
|
||||
Expect(inspect.OutputToString()).To(Or(Equal("stopped"), Equal("exited")))
|
||||
})
|
||||
|
||||
It("podman kill --cidfile", func() {
|
||||
tmpDir, err := ioutil.TempDir("", "")
|
||||
Expect(err).To(BeNil())
|
||||
|
||||
Reference in New Issue
Block a user