mirror of
https://github.com/containers/podman.git
synced 2025-06-04 04:56:32 +08:00
Merge pull request #4284 from mheon/fix_vol_inspect
Show volume options in 'volume inspect'
This commit is contained in:
@ -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())
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user