Merge pull request #6842 from rhatdan/pids-limit

Pids-limit should only be set if the user set it
This commit is contained in:
OpenShift Merge Robot
2020-07-13 20:53:20 +02:00
committed by GitHub
6 changed files with 43 additions and 28 deletions

View File

@@ -1072,4 +1072,13 @@ USER mail`
Expect(session.OutputToString()).To(ContainSubstring(h))
})
It("podman run verify pids-limit", func() {
SkipIfCgroupV1()
limit := "4321"
session := podmanTest.Podman([]string{"run", "--pids-limit", limit, "--rm", ALPINE, "cat", "/sys/fs/cgroup/pids.max"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
Expect(session.OutputToString()).To(ContainSubstring(limit))
})
})