Searched hist:"6332 ef8941999b0c074d1ece0e1e108447c70b98" (Results 1 – 4 of 4) sorted by relevance
/freebsd/tests/atf_python/ |
H A D | utils.py | diff 6332ef8941999b0c074d1ece0e1e108447c70b98 Thu Feb 09 15:31:34 CET 2023 Alexander V. Chernikov <melifaro@FreeBSD.org> testing: handling non-root users with VNETs in pytest-based tests.
Currently isolation and resource requirements are handled directly by the kyua runner, based on the requirements specified by the test. It works well for simple tests, but may cause discrepancy with tests doing complex pre-setups. For example, all tests that perform VNET setups require root access to properly function.
This change adds additional handling of the "require_user" property within the python testing framework. Specifically, it requests root access if the test class signals its root requirements and drops privileges to the desired user after performing the pre-setup.
Differential Revision: https://reviews.freebsd.org/D37923 MFC after: 2 weeks
|
H A D | atf_pytest.py | diff 6332ef8941999b0c074d1ece0e1e108447c70b98 Thu Feb 09 15:31:34 CET 2023 Alexander V. Chernikov <melifaro@FreeBSD.org> testing: handling non-root users with VNETs in pytest-based tests.
Currently isolation and resource requirements are handled directly by the kyua runner, based on the requirements specified by the test. It works well for simple tests, but may cause discrepancy with tests doing complex pre-setups. For example, all tests that perform VNET setups require root access to properly function.
This change adds additional handling of the "require_user" property within the python testing framework. Specifically, it requests root access if the test class signals its root requirements and drops privileges to the desired user after performing the pre-setup.
Differential Revision: https://reviews.freebsd.org/D37923 MFC after: 2 weeks
|
/freebsd/tests/ |
H A D | conftest.py | diff 6332ef8941999b0c074d1ece0e1e108447c70b98 Thu Feb 09 15:31:34 CET 2023 Alexander V. Chernikov <melifaro@FreeBSD.org> testing: handling non-root users with VNETs in pytest-based tests.
Currently isolation and resource requirements are handled directly by the kyua runner, based on the requirements specified by the test. It works well for simple tests, but may cause discrepancy with tests doing complex pre-setups. For example, all tests that perform VNET setups require root access to properly function.
This change adds additional handling of the "require_user" property within the python testing framework. Specifically, it requests root access if the test class signals its root requirements and drops privileges to the desired user after performing the pre-setup.
Differential Revision: https://reviews.freebsd.org/D37923 MFC after: 2 weeks
|
/freebsd/tests/atf_python/sys/net/ |
H A D | vnet.py | diff 6332ef8941999b0c074d1ece0e1e108447c70b98 Thu Feb 09 15:31:34 CET 2023 Alexander V. Chernikov <melifaro@FreeBSD.org> testing: handling non-root users with VNETs in pytest-based tests.
Currently isolation and resource requirements are handled directly by the kyua runner, based on the requirements specified by the test. It works well for simple tests, but may cause discrepancy with tests doing complex pre-setups. For example, all tests that perform VNET setups require root access to properly function.
This change adds additional handling of the "require_user" property within the python testing framework. Specifically, it requests root access if the test class signals its root requirements and drops privileges to the desired user after performing the pre-setup.
Differential Revision: https://reviews.freebsd.org/D37923 MFC after: 2 weeks
|