summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2022-03-03 13:23:07 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2022-03-03 13:23:07 +0100
commita901c919ab5e778558c0dd1583d66a6a8c38f43f (patch)
tree312d5b2b4be9a0f3a1918d4e0d1f82cd8d342c50 /test/e2e
parent7877b02aacf3e8d3d37f6283c6b8aa81688fd120 (diff)
downloadpodman-a901c919ab5e778558c0dd1583d66a6a8c38f43f.tar.gz
podman-a901c919ab5e778558c0dd1583d66a6a8c38f43f.tar.bz2
podman-a901c919ab5e778558c0dd1583d66a6a8c38f43f.zip
libpod: pods do not use cgroups if --cgroups=disabled
do not attempt to use cgroups with pods if the cgroups are disabled. A similar check is already in place for containers. Closes: https://github.com/containers/podman/issues/13411 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/containers_conf_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/containers_conf_test.go b/test/e2e/containers_conf_test.go
index bfed01854..09cd68042 100644
--- a/test/e2e/containers_conf_test.go
+++ b/test/e2e/containers_conf_test.go
@@ -562,6 +562,11 @@ var _ = Describe("Verify podman containers.conf usage", func() {
inspect = podmanTest.Podman([]string{"inspect", "--format", "{{ .HostConfig.Cgroups }}", result.OutputToString()})
inspect.WaitWithDefaultTimeout()
Expect(inspect.OutputToString()).To(Equal("disabled"))
+
+ // Check we can also create a pod when cgroups=disabled
+ result = podmanTest.Podman([]string{"pod", "create"})
+ result.WaitWithDefaultTimeout()
+ Expect(result).Should(Exit(0))
})
It("podman containers.conf runtime", func() {