summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-24 17:15:28 +0200
committerGitHub <noreply@github.com>2021-05-24 17:15:28 +0200
commit4d6b66a452416b79fe5b6b6615ee5076763a44df (patch)
tree4cbe6e33833cc49e7a56872869209f0e72d3852a /test
parent2311a02c38d42b5e0cf3981a35701c77b1b4f6d0 (diff)
parent2f5552c32d01678bfbfdbb8838e1672d62521a6c (diff)
downloadpodman-4d6b66a452416b79fe5b6b6615ee5076763a44df.tar.gz
podman-4d6b66a452416b79fe5b6b6615ee5076763a44df.tar.bz2
podman-4d6b66a452416b79fe5b6b6615ee5076763a44df.zip
Merge pull request #10387 from flouthoc/cgroupv1-v2-info
Podman info add support for status of standard available cgroup controllers
Diffstat (limited to 'test')
-rw-r--r--test/e2e/info_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/info_test.go b/test/e2e/info_test.go
index 60136bcc2..f5b70d6bf 100644
--- a/test/e2e/info_test.go
+++ b/test/e2e/info_test.go
@@ -135,4 +135,14 @@ var _ = Describe("Podman Info", func() {
Expect(session.OutputToString()).To(ContainSubstring("false"))
}
})
+
+ It("Podman info must contain cgroupControllers with ReleventControllers", func() {
+ SkipIfRootless("Hard to tell which controllers are going to be enabled for rootless")
+ SkipIfRootlessCgroupsV1("Disable cgroups not supported on cgroupv1 for rootless users")
+ session := podmanTest.Podman([]string{"info", "--format", "{{.Host.CgroupControllers}}"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).To(Exit(0))
+ Expect(session.OutputToString()).To(ContainSubstring("memory"))
+ Expect(session.OutputToString()).To(ContainSubstring("pids"))
+ })
})