summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-30 16:54:00 +0100
committerGitHub <noreply@github.com>2020-10-30 16:54:00 +0100
commit6b5a94cf2831df0633cc03a28f432177c0ee1d7b (patch)
treeeff47a0f64811a5c8d98c2aa474a445d5a69e07e /test/e2e
parent3db54bacaa479bb4ef3bbdea724f892b08cd76d1 (diff)
parent916825b6753086d7712ba593e5381b9bd49aae96 (diff)
downloadpodman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.tar.gz
podman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.tar.bz2
podman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.zip
Merge pull request #8192 from rhatdan/shm
Pod's that share the IPC Namespace need to share /dev/shm
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/pod_pod_namespaces.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/e2e/pod_pod_namespaces.go b/test/e2e/pod_pod_namespaces.go
index 41e9c5683..20b8bdb39 100644
--- a/test/e2e/pod_pod_namespaces.go
+++ b/test/e2e/pod_pod_namespaces.go
@@ -60,6 +60,25 @@ var _ = Describe("Podman pod create", func() {
Expect(NAMESPACE1).To(Equal(NAMESPACE2))
})
+ It("podman pod container share ipc && /dev/shm ", func() {
+ session := podmanTest.Podman([]string{"pod", "create"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ podID := session.OutputToString()
+
+ session = podmanTest.Podman([]string{"pod", "start", podID})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"run", "--rm", "--pod", podID, ALPINE, "touch", "/dev/shm/test"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"run", "--rm", "--pod", podID, ALPINE, "ls", "/dev/shm/test"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ })
+
It("podman pod container dontshare PIDNS", func() {
session := podmanTest.Podman([]string{"pod", "create"})
session.WaitWithDefaultTimeout()