mirror of
https://github.com/containers/podman.git
synced 2025-10-17 11:14:40 +08:00
Disable the tests for rootless pods
Access to the cpuset cgroup controller is needed to run these tests. Configuration on the CI workers prevents access to this controller for rootless pods. Signed-off-by: François Poirotte <clicky@erebot.net>
This commit is contained in:
@ -6195,6 +6195,7 @@ spec:
|
||||
})
|
||||
|
||||
It("test cpuset annotation", func() {
|
||||
SkipIfRootless("access to cpuset cgroup controller is needed")
|
||||
ctrAnnotation := "io.podman.annotations.cpuset/" + defaultCtrName
|
||||
pod := getPod(withAnnotation(ctrAnnotation, "0"), withPodInitCtr(getCtr(withImage(CITEST_IMAGE), withCmd([]string{"printenv", "container"}), withInitCtr(), withName("init-test"))), withCtr(getCtr(withImage(CITEST_IMAGE), withCmd([]string{"top"}))))
|
||||
err := generateKubeYaml("pod", pod, kubeYaml)
|
||||
@ -6209,6 +6210,7 @@ spec:
|
||||
})
|
||||
|
||||
It("test memory-nodes annotation", func() {
|
||||
SkipIfRootless("access to cpuset cgroup controller is needed")
|
||||
ctrAnnotation := "io.podman.annotations.memory-nodes/" + defaultCtrName
|
||||
pod := getPod(withAnnotation(ctrAnnotation, "0"), withPodInitCtr(getCtr(withImage(CITEST_IMAGE), withCmd([]string{"printenv", "container"}), withInitCtr(), withName("init-test"))), withCtr(getCtr(withImage(CITEST_IMAGE), withCmd([]string{"top"}))))
|
||||
err := generateKubeYaml("pod", pod, kubeYaml)
|
||||
|
Reference in New Issue
Block a user