summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_delegation_plugin.py
diff options
context:
space:
mode:
authorOndrej Hamada <ohamada@redhat.com>2012-02-07 13:07:09 +0100
committerMartin Kosek <mkosek@redhat.com>2012-02-08 10:45:18 +0100
commit93a1a3805369048f87e4328f421e156c8ebac07f (patch)
treead7660834189a90687361adc98e1205c99b53a2a /tests/test_xmlrpc/test_delegation_plugin.py
parent994ec02b3f50c410b0401225a4be997e63dacd0a (diff)
downloadfreeipa.git-93a1a3805369048f87e4328f421e156c8ebac07f.tar.gz
freeipa.git-93a1a3805369048f87e4328f421e156c8ebac07f.tar.xz
freeipa.git-93a1a3805369048f87e4328f421e156c8ebac07f.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.py12
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 1a9c3674..db5f7186 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.