pytest-testinfra icon indicating copy to clipboard operation
pytest-testinfra copied to clipboard

New limits module

Open edubxb opened this issue 6 years ago • 6 comments
trafficstars

Module to check user session limits using the Bash ulimit builtin.

I not able to pass the test suite locally, some Docker builds fails on my laptop :sweat:.

edubxb avatar Oct 31 '19 20:10 edubxb

Build succeeded (third-party-check pipeline).

opendev-zuul[bot] avatar Oct 31 '19 21:10 opendev-zuul[bot]

Build succeeded (third-party-check pipeline).

opendev-zuul[bot] avatar Oct 31 '19 21:10 opendev-zuul[bot]

Build succeeded (third-party-check pipeline).

opendev-zuul[bot] avatar Oct 31 '19 22:10 opendev-zuul[bot]

Build succeeded (third-party-check pipeline).

opendev-zuul[bot] avatar Oct 31 '19 23:10 opendev-zuul[bot]

Hi, thanks for this.

IIUC limits are per process and this module is exposing "default" limits applied to the current user. I wonder if this could be integrated in the existing "process" module ? Process limits are exposed by linux in /proc//limits. And maybe this could also be exposed to the existing "user" module by running "cat /proc/self/limits" as selected user.

What do you think ?

philpep avatar Dec 05 '19 09:12 philpep

Mmm, sounds good, let me dig about it a little more.

edubxb avatar Dec 05 '19 11:12 edubxb