summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-05-23 17:45:09 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-05-24 15:58:31 -0400
commit2ce475576781dc50ec5e2998982d19c80c305117 (patch)
tree9b7118c98b02e508cdd55c41f3b53931d826ec59 /test
parent0f5c06dac58645943469c63999931c165dba9031 (diff)
downloadpodman-2ce475576781dc50ec5e2998982d19c80c305117.tar.gz
podman-2ce475576781dc50ec5e2998982d19c80c305117.tar.bz2
podman-2ce475576781dc50ec5e2998982d19c80c305117.zip
Allow podman pod create --share +pid
Fixes: https://github.com/containers/podman/issues/13422 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/system/200-pod.bats7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats
index 4250f2680..279e3f4d7 100644
--- a/test/system/200-pod.bats
+++ b/test/system/200-pod.bats
@@ -335,8 +335,15 @@ EOF
is "$output" ".*Invalid kernel namespace to share: bogus. Options are: cgroup, ipc, net, pid, uts or none" \
"pod test for bogus --share option"
run_podman pod create --share ipc --name $pod_name
+ run_podman pod inspect $pod_name --format "{{.SharedNamespaces}}"
+ is "$output" "[ipc]"
run_podman run --rm --pod $pod_name --hostname foobar $IMAGE hostname
is "$output" "foobar" "--hostname should work with non share UTS namespace"
+ run_podman pod create --share +pid --replace --name $pod_name
+ run_podman pod inspect $pod_name --format "{{.SharedNamespaces}}"
+ for ns in uts pid ipc net; do
+ is "$output" ".*$ns"
+ done
}
@test "podman pod create --pod new:$POD --hostname" {