From c781e8a57d3d05fa07729dbccff07bc1fab9d8e8 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 10 Aug 2009 16:24:10 -0400 Subject: 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. --- tests/test_xmlrpc/test_hostgroup_plugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/test_xmlrpc/test_hostgroup_plugin.py') diff --git a/tests/test_xmlrpc/test_hostgroup_plugin.py b/tests/test_xmlrpc/test_hostgroup_plugin.py index 6e26e099..0aa685d7 100644 --- a/tests/test_xmlrpc/test_hostgroup_plugin.py +++ b/tests/test_xmlrpc/test_hostgroup_plugin.py @@ -47,6 +47,7 @@ class test_hostgroup(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_host_add(self): """ @@ -101,13 +102,13 @@ class test_hostgroup(XMLRPC_test): assert_attr_equal(res, 'description', newdesc) assert_attr_equal(res, 'cn', self.cn) - def test_7_hostgroup_del_member(self): + def test_7_hostgroup_remove_member(self): """ - Test the `xmlrpc.hostgroup_del_member` method. + Test the `xmlrpc.hostgroup_remove_member` method. """ kw = {} kw['hosts'] = self.host_fqdn - (total, failed, res) = api.Command['hostgroup_del_member'](self.cn, **kw) + (total, failed, res) = api.Command['hostgroup_remove_member'](self.cn, **kw) assert res assert res[1].get('member', []) == [] -- cgit