summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-17 11:10:33 -0500
committerGitHub <noreply@github.com>2021-02-17 11:10:33 -0500
commit516dc6d1ff618019079bc68055dd7f6c2a447aa2 (patch)
tree85d04556ee54e886621691524c60d5e14071c0bf /test/e2e
parent2e522ff29cfea06a37debfc4a31a231bf7097b34 (diff)
parente2d5a1d0512abed12e0844ab33fdbf023f206c7c (diff)
downloadpodman-516dc6d1ff618019079bc68055dd7f6c2a447aa2.tar.gz
podman-516dc6d1ff618019079bc68055dd7f6c2a447aa2.tar.bz2
podman-516dc6d1ff618019079bc68055dd7f6c2a447aa2.zip
Merge pull request #9409 from rhatdan/size
podman ps --format '{{ .Size }}' requires --size option
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/ps_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go
index 225bd538e..016b4c8cd 100644
--- a/test/e2e/ps_test.go
+++ b/test/e2e/ps_test.go
@@ -350,6 +350,21 @@ var _ = Describe("Podman ps", func() {
Expect(session).To(ExitWithError())
})
+ It("podman --format by size", func() {
+ session := podmanTest.Podman([]string{"create", "busybox", "ls"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"create", "-t", ALPINE, "top"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"ps", "-a", "--format", "{{.Size}}"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.ErrorToString()).To(ContainSubstring("Size format requires --size option"))
+ })
+
It("podman --sort by size", func() {
session := podmanTest.Podman([]string{"create", "busybox", "ls"})
session.WaitWithDefaultTimeout()