From 367213a3943961126c6f7c1dce45c7fafea9e6b2 Mon Sep 17 00:00:00 2001 From: umohnani8 Date: Mon, 5 Feb 2018 10:42:14 -0500 Subject: Match podman inspect output to docker inspect Made a change to make sure that the output paths of podman inspect matches that of docker inspect. For example to get the stop signal you should be able to do podman inspect ctr --format {{.Config.StopSignal}} and the same thing in docker will give the same results. Signed-off-by: umohnani8 Closes: #292 Approved by: rhatdan --- test/e2e/create_test.go | 2 +- test/e2e/inspect_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'test/e2e') diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go index c116cea7d..e54e35761 100644 --- a/test/e2e/create_test.go +++ b/test/e2e/create_test.go @@ -38,7 +38,7 @@ var _ = Describe("Podman create", func() { check := podmanTest.Podman([]string{"inspect", "-l"}) check.WaitWithDefaultTimeout() data := check.InspectContainerToJSON() - Expect(data.CtrInspectData.ID).To(ContainSubstring(cid)) + Expect(data.ID).To(ContainSubstring(cid)) }) It("podman create container based on a remote image", func() { diff --git a/test/e2e/inspect_test.go b/test/e2e/inspect_test.go index b22774575..b6020f53b 100644 --- a/test/e2e/inspect_test.go +++ b/test/e2e/inspect_test.go @@ -3,9 +3,10 @@ package integration import ( "os" + "strings" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "strings" ) var _ = Describe("Podman inspect", func() { @@ -69,6 +70,6 @@ var _ = Describe("Podman inspect", func() { result.WaitWithDefaultTimeout() Expect(result.ExitCode()).To(Equal(0)) conData := result.InspectContainerToJSON() - Expect(conData.CtrInspectData.SizeRootFs).To(BeNumerically(">", 0)) + Expect(conData.SizeRootFs).To(BeNumerically(">", 0)) }) }) -- cgit v1.2.3-54-g00ecf