freeipa/ipatests/test_ipaserver/test_install
Christian Heimes f4001e1c53 Add safe DirectiveSetter context manager
installutils.set_directive() is both inefficient and potentially
dangerous. It does not ensure that the whole file is written and
properly synced to disk. In worst case it could lead to partially
written or destroyed config files.

The new DirectiveSetter context manager wraps everything under an easy
to use interface.

https://pagure.io/freeipa/issue/7312

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2017-12-12 14:13:54 +01:00
..
__init__.py Add options to run only ipaclient unittests 2017-03-17 15:02:13 +01:00
test_adtrustinstance.py Add options to run only ipaclient unittests 2017-03-17 15:02:13 +01:00
test_cainstance.py Add tests for external CA profile specifiers 2017-10-04 10:09:18 +02:00
test_installutils.py Add safe DirectiveSetter context manager 2017-12-12 14:13:54 +01:00
test_service.py Applied tier0 and tier1 marks on unit tests and xmlrpc tests 2015-11-09 11:49:17 +01:00