summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-21 22:20:40 +0200
committerGitHub <noreply@github.com>2019-10-21 22:20:40 +0200
commitefc54c3987f95fd94b5e0aa41dd307be49d1b31b (patch)
tree1820209fcc96b950caac0fc7a9a45c0b75a10823 /test/e2e
parentd2591a54335424263374a919d485712e5b8aa093 (diff)
parent03da8b641df1c03aea6f9faa3ddc2b0df64ec68b (diff)
downloadpodman-efc54c3987f95fd94b5e0aa41dd307be49d1b31b.tar.gz
podman-efc54c3987f95fd94b5e0aa41dd307be49d1b31b.tar.bz2
podman-efc54c3987f95fd94b5e0aa41dd307be49d1b31b.zip
Merge pull request #4284 from mheon/fix_vol_inspect
Show volume options in 'volume inspect'
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/volume_inspect_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/volume_inspect_test.go b/test/e2e/volume_inspect_test.go
index 0683c6bbf..5015e0535 100644
--- a/test/e2e/volume_inspect_test.go
+++ b/test/e2e/volume_inspect_test.go
@@ -2,6 +2,7 @@ package integration
import (
"os"
+ "strings"
. "github.com/containers/libpod/test/utils"
. "github.com/onsi/ginkgo"
@@ -74,4 +75,16 @@ var _ = Describe("Podman volume inspect", func() {
Expect(session.OutputToStringArray()[0]).To(Equal(volName1))
Expect(session.OutputToStringArray()[1]).To(Equal(volName2))
})
+
+ It("inspect volume finds options", func() {
+ volName := "testvol"
+ session := podmanTest.Podman([]string{"volume", "create", "--opt", "type=tmpfs", volName})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ inspect := podmanTest.Podman([]string{"volume", "inspect", volName})
+ inspect.WaitWithDefaultTimeout()
+ Expect(inspect.ExitCode()).To(Equal(0))
+ Expect(strings.Contains(inspect.OutputToString(), "tmpfs")).To(BeTrue())
+ })
})