summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-23 16:40:22 +0100
committerGitHub <noreply@github.com>2020-12-23 16:40:22 +0100
commit0778c114d3001bdd4f40fe46283457481d983b64 (patch)
tree8f7899db5c874eed3a8fc4de1a4d6c551530572f /test/e2e
parent3728ca9e8ded1b63b0f90f3ca5fbf0dc681b1f5d (diff)
parent28138dafcc391b0d03633ee9c8e23ebc229842ba (diff)
downloadpodman-0778c114d3001bdd4f40fe46283457481d983b64.tar.gz
podman-0778c114d3001bdd4f40fe46283457481d983b64.tar.bz2
podman-0778c114d3001bdd4f40fe46283457481d983b64.zip
Merge pull request #8793 from zhangguanzhang/vol-op
Fix missing options in volume's display while setting uid and gid
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/volume_create_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/volume_create_test.go b/test/e2e/volume_create_test.go
index 8c44e57e4..544532ee0 100644
--- a/test/e2e/volume_create_test.go
+++ b/test/e2e/volume_create_test.go
@@ -82,5 +82,13 @@ var _ = Describe("Podman volume create", func() {
inspectGID.WaitWithDefaultTimeout()
Expect(inspectGID.ExitCode()).To(Equal(0))
Expect(inspectGID.OutputToString()).To(Equal(gid))
+
+ // options should containt `uid=3000,gid=4000:3000:4000`
+ optionFormat := `{{ .Options.o }}:{{ .Options.UID }}:{{ .Options.GID }}`
+ optionStrFormatExpect := fmt.Sprintf(`uid=%s,gid=%s:%s:%s`, uid, gid, uid, gid)
+ inspectOpts := podmanTest.Podman([]string{"volume", "inspect", "--format", optionFormat, volName})
+ inspectOpts.WaitWithDefaultTimeout()
+ Expect(inspectOpts.ExitCode()).To(Equal(0))
+ Expect(inspectOpts.OutputToString()).To(Equal(optionStrFormatExpect))
})
})