summaryrefslogtreecommitdiffstats
path: root/ipapython/kernel_keyring.py
diff options
context:
space:
mode:
authorMilan KubĂ­k <mkubik@redhat.com>2016-07-22 17:19:31 +0200
committerMartin Basti <mbasti@redhat.com>2016-07-29 09:04:42 +0200
commit7c03708734ad7cb8f1a6edd39817212794b5aabd (patch)
treeb31b2e64c65d96f8db620ac83d9a64825c0f963f /ipapython/kernel_keyring.py
parentdde1240f5d71f3a8c50226a720af6f1000a35be1 (diff)
ipatests: Provide a context manager for mocking a trust in RPC tests
The new module contains utility functions and a context manager to make the mocking of an existing AD trust relation in the XMLRPC tests. The module provides with two functions that create and delete the containers for trusts and cifs domains. A context manager using these is provided as well. The user of the context manager is responsible for deleting all the LDAP entries created during the test within the context. If there are some entries left at the time of exiting the context manager, making the container entries non-leaf entries, the tests will fail. The context manager will not work when used on a server that already has trust established. https://fedorahosted.org/freeipa/ticket/6142 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipapython/kernel_keyring.py')
0 files changed, 0 insertions, 0 deletions