summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-25 08:57:15 -0400
committerGitHub <noreply@github.com>2022-05-25 08:57:15 -0400
commit800a367d737828193de5e41f8ad5587e2dde1f59 (patch)
tree3c0c8badf0ae88decba77d23b3085a26d41244aa /test/system
parent1dcd1c970d3438bd6044cce0aba9b7258cb6849d (diff)
parent2ce475576781dc50ec5e2998982d19c80c305117 (diff)
downloadpodman-800a367d737828193de5e41f8ad5587e2dde1f59.tar.gz
podman-800a367d737828193de5e41f8ad5587e2dde1f59.tar.bz2
podman-800a367d737828193de5e41f8ad5587e2dde1f59.zip
Merge pull request #14333 from rhatdan/pod
Allow podman pod create --share +pid
Diffstat (limited to 'test/system')
-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 8761b7131..404ad67ec 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" {