test_xmlrpc: Update tests

- The number of permissions in $SUFFIX changed.
- A new ACI was added to realmdomains

Update the tests.

Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
Petr Viktorin 2014-07-08 13:28:24 +02:00
parent 2afcbff133
commit cd4fd60c0e
2 changed files with 13 additions and 3 deletions

View File

@ -2851,9 +2851,9 @@ class test_permission_legacy(Declarative):
command=('permission_find', [],
{'ipapermlocation': api.env.basedn}),
expected=dict(
count=15,
count=16,
truncated=False,
summary=u'15 permissions matched',
summary=u'16 permissions matched',
result=lambda s: True,
),
),

View File

@ -71,7 +71,17 @@ class test_realmdomains(Declarative):
u'(version 3.0;acl '
u'"permission:System: Read Realm Domains";'
u'allow (compare,read,search) '
u'userdn = "ldap:///all";)'
u'userdn = "ldap:///all";)',
u'(targetattr = "associateddomain")'
u'(targetfilter = "(objectclass=domainrelatedobject)")'
u'(version 3.0;acl '
u'"permission:System: Modify Realm Domains";'
u'allow (write) groupdn = "ldap:///%s";)' %
DN('cn=System: Modify Realm Domains',
api.env.container_permission,
api.env.basedn),
],
),
),