diff options
author | umohnani8 <umohnani@redhat.com> | 2018-02-05 10:42:14 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-06 19:31:55 +0000 |
commit | 367213a3943961126c6f7c1dce45c7fafea9e6b2 (patch) | |
tree | 758846f65e55f4f005b03fbfd5d81933db6cf437 /test/e2e | |
parent | 69d75a82515b6b4270cd6b72617cff1531f9ceca (diff) | |
download | podman-367213a3943961126c6f7c1dce45c7fafea9e6b2.tar.gz podman-367213a3943961126c6f7c1dce45c7fafea9e6b2.tar.bz2 podman-367213a3943961126c6f7c1dce45c7fafea9e6b2.zip |
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 <umohnani@redhat.com>
Closes: #292
Approved by: rhatdan
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/create_test.go | 2 | ||||
-rw-r--r-- | test/e2e/inspect_test.go | 5 |
2 files changed, 4 insertions, 3 deletions
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)) }) }) |