Add missing --pkey-only option for selfservice and delegation

pkey-only functionality has to be implemented separately for these
modules as they are based on crud.Search instead of standard
LDAPSearch.

Delegation moduled was also fixed to support new format of ACI's
memberof attribute introduced in patch "Display the value of
memberOf ACIs in permission plugin."

https://fedorahosted.org/freeipa/ticket/2092
This commit is contained in:
Martin Kosek
2012-01-16 11:14:59 +01:00
parent f7753bf55c
commit 7f6c9ac04c
9 changed files with 106 additions and 68 deletions

View File

@@ -137,6 +137,21 @@ class test_selfservice(Declarative):
),
),
dict(
desc='Search for %r with --pkey-only' % selfservice1,
command=('selfservice_find', [selfservice1], {'pkey_only' : True}),
expected=dict(
count=1,
truncated=False,
summary=u'1 selfservice matched',
result=[
{
'aciname': selfservice1,
},
],
),
),
dict(
desc='Update %r' % selfservice1,