diff options
author | Ondrej Hamada <ohamada@redhat.com> | 2012-02-07 13:07:09 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-08 10:43:25 +0100 |
commit | 616d543a54833a1fde6b0098d91ac0f4e14f7a57 (patch) | |
tree | 6b88c2a83ccf1f02c6e1204240105392f396b25f /tests/test_xmlrpc/test_delegation_plugin.py | |
parent | 304b70843a96ce2e4effbc1d45144f79fd761d63 (diff) | |
download | freeipa-616d543a54833a1fde6b0098d91ac0f4e14f7a57.tar.gz freeipa-616d543a54833a1fde6b0098d91ac0f4e14f7a57.tar.xz freeipa-616d543a54833a1fde6b0098d91ac0f4e14f7a57.zip |
Memberof attribute control and update
Checking of parameters used by _make_aci funcion was rewritten.
Additional attributes of ACI(type, attribute, memberof, targetgroup,
subtree, filter) could be unset.
Permission plugin now allows to unset memberof value.
https://fedorahosted.org/freeipa/ticket/2255
Added checking of existence of groups that are specified in permission
and delegation module.
https://fedorahosted.org/freeipa/ticket/2286
https://fedorahosted.org/freeipa/ticket/2305
Diffstat (limited to 'tests/test_xmlrpc/test_delegation_plugin.py')
-rw-r--r-- | tests/test_xmlrpc/test_delegation_plugin.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_delegation_plugin.py b/tests/test_xmlrpc/test_delegation_plugin.py index 1a9c36743..db5f71865 100644 --- a/tests/test_xmlrpc/test_delegation_plugin.py +++ b/tests/test_xmlrpc/test_delegation_plugin.py @@ -68,6 +68,18 @@ class test_delegation(Declarative): ), ), + dict( + desc='Try to create %r for non-existing member group' % delegation1, + command=( + 'delegation_add', [delegation1], dict( + attrs=u'street,c,l,st,postalCode', + permissions=u'write', + group=u'editors', + memberof=u'nonexisting', + ), + ), + expected=errors.NotFound(reason='group not found'), + ), # Note that we add postalCode but expect postalcode. This tests # the attrs normalizer. |