summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-24 19:05:44 +0100
committerGitHub <noreply@github.com>2022-03-24 19:05:44 +0100
commite657c7a170f3ed35d56d099c5c7c15c84374c4f2 (patch)
tree0a0f013d472cf6c4ccf26b25e3be0e19b9cee8d5 /test
parentb6c713f4d7cbf039ec2c0abcb15d2307c639b026 (diff)
parent5e28cbc5fcdd89fc3623fe2324d7ba7fa6117d21 (diff)
downloadpodman-e657c7a170f3ed35d56d099c5c7c15c84374c4f2.tar.gz
podman-e657c7a170f3ed35d56d099c5c7c15c84374c4f2.tar.bz2
podman-e657c7a170f3ed35d56d099c5c7c15c84374c4f2.zip
Merge pull request #13622 from rhatdan/systemd1
When running systemd in a container set container_uuid
Diffstat (limited to 'test')
-rw-r--r--test/system/250-systemd.bats7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats
index 3847d9510..6c72e14e8 100644
--- a/test/system/250-systemd.bats
+++ b/test/system/250-systemd.bats
@@ -281,6 +281,13 @@ LISTEN_FDNAMES=listen_fdnames" | sort)
is "$output" "" "output should be empty"
}
+@test "podman --systemd sets container_uuid" {
+ run_podman run --systemd=always --name test $IMAGE printenv container_uuid
+ container_uuid=$output
+ run_podman inspect test --format '{{ .ID }}'
+ is "${container_uuid}" "${output:0:32}" "UUID should be first 32 chars of Container id"
+}
+
# https://github.com/containers/podman/issues/13153
@test "podman rootless-netns slirp4netns process should be in different cgroup" {
is_rootless || skip "only meaningful for rootless"