mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix unit tests to handle new group-{add, del}-member semantics.
This commit is contained in:
committed by
Rob Crittenden
parent
34b5b0d563
commit
48d6669796
@@ -64,7 +64,7 @@ class test_hostgroup(XMLRPC_test):
|
||||
"""
|
||||
kw = {}
|
||||
kw['hosts'] = self.host_fqdn
|
||||
(total, res) = api.Command['hostgroup_add_member'](self.cn, **kw)
|
||||
(total, failed, res) = api.Command['hostgroup_add_member'](self.cn, **kw)
|
||||
assert res[1].get('member', []) != []
|
||||
|
||||
def test_4_hostgroup_show(self):
|
||||
@@ -107,7 +107,7 @@ class test_hostgroup(XMLRPC_test):
|
||||
"""
|
||||
kw = {}
|
||||
kw['hosts'] = self.host_fqdn
|
||||
(total, res) = api.Command['hostgroup_del_member'](self.cn, **kw)
|
||||
(total, failed, res) = api.Command['hostgroup_del_member'](self.cn, **kw)
|
||||
assert res
|
||||
assert res[1].get('member', []) == []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user