diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-10-18 14:53:32 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2010-10-28 08:39:10 -0400 |
commit | 70a57924c8e265df1e97b7f0be1adf8da802fbfd (patch) | |
tree | 40731984730ee48d8161e0cca67c34581e55d246 /tests/test_xmlrpc/test_host_plugin.py | |
parent | 93290c8a72bcd5c4ab34eedf0ec443469b36f8c1 (diff) | |
download | freeipa-70a57924c8e265df1e97b7f0be1adf8da802fbfd.tar.gz freeipa-70a57924c8e265df1e97b7f0be1adf8da802fbfd.tar.xz freeipa-70a57924c8e265df1e97b7f0be1adf8da802fbfd.zip |
Allow RDN changes for users, groups, rolegroups and taskgroups.
To do a change right now you have to perform a setattr like:
ipa user-mod --setattr uid=newuser olduser
The RDN change is performed before the rest of the mods. If the RDN
change is the only change done then the EmptyModlist that update_entry()
throws is ignored.
ticket 323
Diffstat (limited to 'tests/test_xmlrpc/test_host_plugin.py')
-rw-r--r-- | tests/test_xmlrpc/test_host_plugin.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_host_plugin.py b/tests/test_xmlrpc/test_host_plugin.py index 6a07763c6..631a5de7d 100644 --- a/tests/test_xmlrpc/test_host_plugin.py +++ b/tests/test_xmlrpc/test_host_plugin.py @@ -234,6 +234,13 @@ class test_host(Declarative): dict( + desc='Try to rename %r' % fqdn1, + command=('host_mod', [fqdn1], dict(setattr=u'fqdn=changed')), + expected=errors.NotAllowedOnRDN() + ), + + + dict( desc='Delete %r' % fqdn1, command=('host_del', [fqdn1], {}), expected=dict( |