summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-02-17 08:58:31 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-02-17 15:22:21 +0100
commit3c2cc6786742ae873d7055ea3921ea5243d92898 (patch)
tree0ae6c8f792343f5e7716b1aeb9375cf2f73a2e6b /test/e2e
parent92dbcb8841abae35658e5da1bf6eddee7669ea75 (diff)
downloadpodman-3c2cc6786742ae873d7055ea3921ea5243d92898.tar.gz
podman-3c2cc6786742ae873d7055ea3921ea5243d92898.tar.bz2
podman-3c2cc6786742ae873d7055ea3921ea5243d92898.zip
podman-ps: support image IDs
Support printing image IDs via `--format "{{.ImageID}}"`. Fixes: #5160 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/ps_test.go3
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))
})