summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorLenka Doudova <ldoudova@redhat.com>2016-11-15 07:22:18 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-15 17:02:13 +0100
commit4b3bd5424246d8386a33a73f9a98c6958823093e (patch)
tree02483eaf38351a4e269755e428df4cb283377cb1 /ipatests
parent5a5373464fa67289c9a178b1c0569f585dc6dc34 (diff)
downloadfreeipa-4b3bd5424246d8386a33a73f9a98c6958823093e.tar.gz
freeipa-4b3bd5424246d8386a33a73f9a98c6958823093e.tar.xz
freeipa-4b3bd5424246d8386a33a73f9a98c6958823093e.zip
Document make_delete_command method in UserTracker
https://fedorahosted.org/freeipa/ticket/6485 Reviewed-By: Milan Kubik <mkubik@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_xmlrpc/tracker/user_plugin.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/ipatests/test_xmlrpc/tracker/user_plugin.py b/ipatests/test_xmlrpc/tracker/user_plugin.py
index 4485fd9b4..1b35a5cf7 100644
--- a/ipatests/test_xmlrpc/tracker/user_plugin.py
+++ b/ipatests/test_xmlrpc/tracker/user_plugin.py
@@ -80,11 +80,21 @@ class UserTracker(KerberosAliasMixin, Tracker):
)
def make_delete_command(self, no_preserve=True, preserve=False):
- """ Make function that deletes a user using user-del """
+ """ Make function that deletes a user using user-del
+
+ Arguments 'preserve' and 'no_preserve' represent implemented
+ options --preserve and --no-preserve of user-del command,
+ which are mutually exclusive.
+ If --preserve=True and --no-preserve=False, the user is moved
+ to deleted container.
+ If --preserve=True and --no-preserve=True, an error is raised.
+ If --preserve=False and --no-preserver=True, user is deleted.
+ """
if preserve and not no_preserve:
- # necessary to change some user attributes due to moving
- # to different container
+ # --preserve=True and --no-preserve=False - user is moved to
+ # another container, hence it is necessary to change some user
+ # attributes
self.attrs[u'dn'] = DN(
('uid', self.uid),
api.env.container_deleteuser,