diff options
author | chenkang <kongchen28@gmail.com> | 2021-04-18 21:29:12 +0800 |
---|---|---|
committer | chenkang <kongchen28@gmail.com> | 2021-04-18 21:29:12 +0800 |
commit | 4ffaa50d05bcb08d7db242232a128bb3493fcf25 (patch) | |
tree | 5ded3dd0fc71154b83cd61a43e1d0737b5d98f2c | |
parent | a35e16c23456a8fba8d2f627ac64f647aa6f0722 (diff) | |
download | podman-4ffaa50d05bcb08d7db242232a128bb3493fcf25.tar.gz podman-4ffaa50d05bcb08d7db242232a128bb3493fcf25.tar.bz2 podman-4ffaa50d05bcb08d7db242232a128bb3493fcf25.zip |
add it for inspect pidfile
Signed-off-by: chenkang <kongchen28@gmail.com>
-rw-r--r-- | test/e2e/inspect_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/inspect_test.go b/test/e2e/inspect_test.go index 772ebed05..ba018b5ad 100644 --- a/test/e2e/inspect_test.go +++ b/test/e2e/inspect_test.go @@ -508,4 +508,14 @@ var _ = Describe("Podman inspect", func() { Expect(data[0].HostConfig.CapDrop[1]).To(Equal("CAP_MKNOD")) Expect(data[0].HostConfig.CapDrop[2]).To(Equal("CAP_NET_RAW")) }) + + It("podman inspect container with GO format for PidFile", func() { + SkipIfRemote("pidfile not handled by remote") + session, ec, _ := podmanTest.RunLsContainer("test1") + Expect(ec).To(Equal(0)) + + session = podmanTest.Podman([]string{"inspect", "--format", "{{.PidFile}}", "test1"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + }) }) |