freeipa/ipatests/test_ipapython
Florence Blanc-Renaud 79fb0cc663 ipautil.run: add test for runas parameter
Add a test for ipautil.run() method called with runas parameter.
The test is using ipautil.run() to execute /usr/bin/id and
checks that the uid/gid are consistent with the runas parameter.

Note that the test needs to be launched by the root user
(non-privileged user may not have the rights to execute ipautil.run()
with runas parameter).

Related to: https://pagure.io/freeipa/issue/7681

Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2018-08-23 12:06:45 +02:00
..
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_certdb.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
test_cookie.py Remove unused variables in tests 2016-09-27 13:35:58 +02:00
test_directivesetter.py Move config directives handling code 2018-05-29 17:03:56 +02:00
test_dn.py pylint: make unsupported-assignment-operation check local 2017-09-08 15:42:07 +02:00
test_dnsutil.py Sort and shuffle SRV record by priority and weight 2018-06-19 08:56:46 +02:00
test_ipautil.py ipautil.run: add test for runas parameter 2018-08-23 12:06:45 +02:00
test_ipavalidate.py Cleanup shebang and executable bit 2018-07-05 19:46:42 +02:00
test_kerberos.py Enhance __repr__ method of Principal 2016-11-30 09:40:43 +01:00
test_keyring.py Replace nose with unittest and pytest 2017-12-12 16:16:58 +01:00
test_session_storage.py Add marker needs_ipaapi and option to skip tests 2017-12-11 20:40:06 +01:00
test_ssh.py Add workaround for pytest 3.3.0 bug 2017-11-28 19:43:15 +01:00