mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
Merge pull request #8983 from rhatdan/test
Turn on podman pod stats test for rootless cgroup v2
This commit is contained in:
@ -17,7 +17,7 @@ var _ = Describe("Podman pod stats", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
SkipIfRootless("Tests fail with both CGv1/2 + required --cgroup-manager=cgroupfs")
|
SkipIfRootlessCgroupsV1("Tests fail with both CGv1 + required --cgroup-manager=cgroupfs")
|
||||||
if isContainerized() {
|
if isContainerized() {
|
||||||
SkipIfCgroupV1("All tests fail Error: unable to load cgroup at ...: cgroup deleted")
|
SkipIfCgroupV1("All tests fail Error: unable to load cgroup at ...: cgroup deleted")
|
||||||
}
|
}
|
||||||
@ -176,8 +176,7 @@ var _ = Describe("Podman pod stats", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman stats on net=host post", func() {
|
It("podman stats on net=host post", func() {
|
||||||
// --net=host not supported for rootless pods at present
|
SkipIfRootless("--net=host not supported for rootless pods at present")
|
||||||
SkipIfRootlessCgroupsV1("Pause stats not supported in cgroups v1")
|
|
||||||
podName := "testPod"
|
podName := "testPod"
|
||||||
podCreate := podmanTest.Podman([]string{"pod", "create", "--net=host", "--name", podName})
|
podCreate := podmanTest.Podman([]string{"pod", "create", "--net=host", "--name", podName})
|
||||||
podCreate.WaitWithDefaultTimeout()
|
podCreate.WaitWithDefaultTimeout()
|
||||||
|
Reference in New Issue
Block a user