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 committed 2014-07-18 15:03:12 +02:00
1 parent 2afcbff133
commit cd4fd60c0e
2 files changed
+13 -3

No files matched your search

@@ -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,
),
),
@@ -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),
],
),
),