diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-18 16:11:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 16:11:28 +0100 |
commit | 5dacee93950a97ea14180bb86f21e462101fe5ea (patch) | |
tree | ac45c90c8581e871cb0ab69ce5a5da1eb85ae650 /test | |
parent | bc20cb9281434a95685bd95de0430a7c40b606e4 (diff) | |
parent | 3c2cc6786742ae873d7055ea3921ea5243d92898 (diff) | |
download | podman-5dacee93950a97ea14180bb86f21e462101fe5ea.tar.gz podman-5dacee93950a97ea14180bb86f21e462101fe5ea.tar.bz2 podman-5dacee93950a97ea14180bb86f21e462101fe5ea.zip |
Merge pull request #5223 from vrothberg/ps-image-id
podman-ps: support image IDs
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/ps_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go index 48dd186e2..adbb9c16c 100644 --- a/test/e2e/ps_test.go +++ b/test/e2e/ps_test.go @@ -170,10 +170,11 @@ var _ = Describe("Podman ps", func() { _, ec, _ := podmanTest.RunLsContainer("test1") Expect(ec).To(Equal(0)) - result := podmanTest.Podman([]string{"ps", "-a", "--format", "table {{.ID}} {{.Image}} {{.Labels}}"}) + result := podmanTest.Podman([]string{"ps", "-a", "--format", "table {{.ID}} {{.Image}} {{.ImageID}} {{.Labels}}"}) result.WaitWithDefaultTimeout() Expect(strings.Contains(result.OutputToStringArray()[0], "table")).To(BeFalse()) Expect(strings.Contains(result.OutputToStringArray()[0], "ID")).To(BeTrue()) + Expect(strings.Contains(result.OutputToStringArray()[0], "ImageID")).To(BeTrue()) Expect(strings.Contains(result.OutputToStringArray()[1], "alpine:latest")).To(BeTrue()) Expect(result.ExitCode()).To(Equal(0)) }) |