summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-08-14 10:58:32 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-14 14:33:31 +0000
commita04ce6893ba00dd184f7b223c74d1901c898880d (patch)
tree41ac64e5b47ba214c3a637c07e7ac5d021de563a /test/e2e
parent9563f314370010d8658ec527dec5f45b648191c9 (diff)
downloadpodman-a04ce6893ba00dd184f7b223c74d1901c898880d.tar.gz
podman-a04ce6893ba00dd184f7b223c74d1901c898880d.tar.bz2
podman-a04ce6893ba00dd184f7b223c74d1901c898880d.zip
rootless: not require userns for help/version
these commands do not require to be root in an userns Closes: https://github.com/containers/libpod/issues/1263 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1268 Approved by: vrothberg
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/rootless_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/rootless_test.go b/test/e2e/rootless_test.go
index 11da9ac9f..9737b9a09 100644
--- a/test/e2e/rootless_test.go
+++ b/test/e2e/rootless_test.go
@@ -34,6 +34,16 @@ var _ = Describe("Podman rootless", func() {
GinkgoWriter.Write([]byte(timedResult))
})
+ It("podman rootless help|version", func() {
+ commands := []string{"help", "version"}
+ for _, v := range commands {
+ env := os.Environ()
+ cmd := podmanTest.PodmanAsUser([]string{v}, 1000, 1000, env)
+ cmd.WaitWithDefaultTimeout()
+ Expect(cmd.ExitCode()).To(Equal(0))
+ }
+ })
+
It("podman rootless rootfs", func() {
// Check if we can create an user namespace
err := exec.Command("unshare", "-r", "echo", "hello").Run()