diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-07-01 08:46:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 08:46:11 +0000 |
commit | 96e72d90b8a6b1d9fb71dadfddff1ed4ccf05857 (patch) | |
tree | cf1617923f618ae0bf1819486f4f425310245db8 /test | |
parent | 01beba3667851c1dd68d3df1e0aa6bc8cb1ec0eb (diff) | |
parent | 7b3e43c1f6cf27a1cde96c0f650a793a56cebc4c (diff) | |
download | podman-96e72d90b8a6b1d9fb71dadfddff1ed4ccf05857.tar.gz podman-96e72d90b8a6b1d9fb71dadfddff1ed4ccf05857.tar.bz2 podman-96e72d90b8a6b1d9fb71dadfddff1ed4ccf05857.zip |
Merge pull request #14449 from cdoern/podVolumes
podman volume create --opt=o=timeout...
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/volume_create_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/volume_create_test.go b/test/e2e/volume_create_test.go index 499283cab..7a975f6a5 100644 --- a/test/e2e/volume_create_test.go +++ b/test/e2e/volume_create_test.go @@ -162,4 +162,19 @@ var _ = Describe("Podman volume create", func() { Expect(inspectOpts).Should(Exit(0)) Expect(inspectOpts.OutputToString()).To(Equal(optionStrFormatExpect)) }) + + It("podman create volume with o=timeout", func() { + volName := "testVol" + timeout := 10 + timeoutStr := "10" + session := podmanTest.Podman([]string{"volume", "create", "--opt", fmt.Sprintf("o=timeout=%d", timeout), volName}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + + inspectTimeout := podmanTest.Podman([]string{"volume", "inspect", "--format", "{{ .Timeout }}", volName}) + inspectTimeout.WaitWithDefaultTimeout() + Expect(inspectTimeout).Should(Exit(0)) + Expect(inspectTimeout.OutputToString()).To(Equal(timeoutStr)) + + }) }) |