diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-08-10 16:24:10 -0400 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-08-10 16:38:42 -0600 |
commit | c781e8a57d3d05fa07729dbccff07bc1fab9d8e8 (patch) | |
tree | a34808ae88abc0a6c61414ca9eda9a094736ba6b /tests/test_xmlrpc/test_rolegroup_plugin.py | |
parent | dbeb409ebd0396ce58102b118452c6e4c6802937 (diff) | |
download | freeipa-c781e8a57d3d05fa07729dbccff07bc1fab9d8e8.tar.gz freeipa-c781e8a57d3d05fa07729dbccff07bc1fab9d8e8.tar.xz freeipa-c781e8a57d3d05fa07729dbccff07bc1fab9d8e8.zip |
Add a new objectclass, ipaObject, that will add a UUID to many IPA objects
ipaObject is defined as an auxiliary objectclass so it is up to the
plugin author to ensure that the objectclass is included an a UUID generated.
ipaUniqueId is a MUST attribute so if you include the objectclass you must
ensure that the uuid is generated.
This also fixes up some unrelated unit test failures.
Diffstat (limited to 'tests/test_xmlrpc/test_rolegroup_plugin.py')
-rw-r--r-- | tests/test_xmlrpc/test_rolegroup_plugin.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_xmlrpc/test_rolegroup_plugin.py b/tests/test_xmlrpc/test_rolegroup_plugin.py index 9a93a926b..d001c90ff 100644 --- a/tests/test_xmlrpc/test_rolegroup_plugin.py +++ b/tests/test_xmlrpc/test_rolegroup_plugin.py @@ -46,6 +46,7 @@ class test_rolegroup(XMLRPC_test): assert res assert_attr_equal(res, 'description', self.description) assert_attr_equal(res, 'cn', self.cn) + assert_attr_equal(res, 'objectclass', 'ipaobject') def test_2_add_group(self): """ @@ -102,13 +103,13 @@ class test_rolegroup(XMLRPC_test): assert_attr_equal(res, 'description', newdesc) assert_attr_equal(res, 'cn', self.cn) - def test_7_rolegroup_del_member(self): + def test_7_rolegroup_remove_member(self): """ - Test the `xmlrpc.rolegroup_del_member` method. + Test the `xmlrpc.rolegroup_remove_member` method. """ kw = {} kw['groups'] = self.rolegroup_cn - (total, failed, res) = api.Command['rolegroup_del_member'](self.cn, **kw) + (total, failed, res) = api.Command['rolegroup_remove_member'](self.cn, **kw) assert total == 1 def test_8_rolegroup_del(self): |