diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-05-16 12:56:04 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-05-25 08:39:47 +0200 |
commit | dea578a357b2ebc68f56ef31f841cfe056f73303 (patch) | |
tree | d82e154c7189e308ff5e762b2c5839653a60fedd /tests/test_xmlrpc | |
parent | 544c826682d8915ad740500555f47f0b459e7ae3 (diff) | |
download | freeipa-dea578a357b2ebc68f56ef31f841cfe056f73303.tar.gz freeipa-dea578a357b2ebc68f56ef31f841cfe056f73303.tar.xz freeipa-dea578a357b2ebc68f56ef31f841cfe056f73303.zip |
A new flag to disable creation of UPG
Automatic creation may of User Private Groups (UPG) may not be
wanted at all times. This patch adds a new flag --noprivate to
ipa user-add command to disable it.
https://fedorahosted.org/freeipa/ticket/1131
Diffstat (limited to 'tests/test_xmlrpc')
-rw-r--r-- | tests/test_xmlrpc/test_group_plugin.py | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_group_plugin.py b/tests/test_xmlrpc/test_group_plugin.py index a49193261..8d61a5bdf 100644 --- a/tests/test_xmlrpc/test_group_plugin.py +++ b/tests/test_xmlrpc/test_group_plugin.py @@ -665,4 +665,48 @@ class test_group(Declarative): expected=errors.NotFound(reason='no such entry'), ), + dict( + desc='Delete %r' % user1, + command=('user_del', [user1], {}), + expected=dict( + result=dict(failed=u''), + summary=u'Deleted user "tuser1"', + value=user1, + ), + ), + + dict( + desc='Create %r without User Private Group' % user1, + command=( + 'user_add', [user1], dict(givenname=u'Test', sn=u'User1', noprivate=True) + ), + expected=dict( + value=user1, + summary=u'Added user "tuser1"', + result=dict( + gecos=[u'Test User1'], + givenname=[u'Test'], + description=[], + homedirectory=[u'/home/tuser1'], + krbprincipalname=[u'tuser1@' + api.env.realm], + loginshell=[u'/bin/sh'], + objectclass=objectclasses.user, + sn=[u'User1'], + uid=[user1], + uidnumber=[fuzzy_digits], + displayname=[u'Test User1'], + cn=[u'Test User1'], + initials=[u'TU'], + ipauniqueid=[fuzzy_uuid], + dn=u'uid=tuser1,cn=users,cn=accounts,' + api.env.basedn, + ), + ), + ), + + dict( + desc='Verify the managed group %r was not created' % user1, + command=('group_show', [user1], {}), + expected=errors.NotFound(reason='no such entry'), + ), + ] |