aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-04 04:26:22 -0500
committerGitHub <noreply@github.com>2022-03-04 04:26:22 -0500
commitf4d6e8777213880204ccbce92201c47c74b33036 (patch)
tree3ce8d46cc034fdd34f4d196eb744183c389c0514 /test
parent5fc8c9b24a5c0b8335a47480d4dbd22116430e11 (diff)
parenta901c919ab5e778558c0dd1583d66a6a8c38f43f (diff)
downloadpodman-f4d6e8777213880204ccbce92201c47c74b33036.tar.gz
podman-f4d6e8777213880204ccbce92201c47c74b33036.tar.bz2
podman-f4d6e8777213880204ccbce92201c47c74b33036.zip
Merge pull request #13413 from giuseppe/pod-no-use-cgroups-if-disabled
libpod: pods do not use cgroups if --cgroups=disabled
Diffstat (limited to 'test')
-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() {