summaryrefslogtreecommitdiff
path: root/test/e2e/volume_ls_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-09 10:58:48 -0400
committerGitHub <noreply@github.com>2020-10-09 10:58:48 -0400
commit73488369586d387db0e4754fa56d5d0077a24940 (patch)
tree7c0b3a7e33aa4a40a9c6635c868ff6c46c0996cd /test/e2e/volume_ls_test.go
parentfa01b838a6867c46576afcab35eaefde6e1c4abe (diff)
parente9b667bb5f9c72fd9903bfa5efd081ad24a2482b (diff)
downloadpodman-73488369586d387db0e4754fa56d5d0077a24940.tar.gz
podman-73488369586d387db0e4754fa56d5d0077a24940.tar.bz2
podman-73488369586d387db0e4754fa56d5d0077a24940.zip
Merge pull request #7973 from jwhonce/jira/run-898-3
Port V1 --format table to V2 podman
Diffstat (limited to 'test/e2e/volume_ls_test.go')
-rw-r--r--test/e2e/volume_ls_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/e2e/volume_ls_test.go b/test/e2e/volume_ls_test.go
index 4a2c2d324..1cb6440aa 100644
--- a/test/e2e/volume_ls_test.go
+++ b/test/e2e/volume_ls_test.go
@@ -7,6 +7,7 @@ import (
. "github.com/containers/podman/v2/test/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
+ . "github.com/onsi/gomega/gexec"
)
var _ = Describe("Podman volume ls", func() {
@@ -56,15 +57,15 @@ var _ = Describe("Podman volume ls", func() {
})
It("podman ls volume with Go template", func() {
- Skip("FIXME: table still not supported in podman volume command")
session := podmanTest.Podman([]string{"volume", "create", "myvol"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
session = podmanTest.Podman([]string{"volume", "ls", "--format", "table {{.Name}} {{.Driver}} {{.Scope}}"})
session.WaitWithDefaultTimeout()
- Expect(session.ExitCode()).To(Equal(0))
- Expect(len(session.OutputToStringArray())).To(Equal(2))
+
+ Expect(session).Should(Exit(0))
+ Expect(len(session.OutputToStringArray())).To(Equal(1), session.OutputToString())
})
It("podman ls volume with --filter flag", func() {