summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorMilan KubĂ­k <mkubik@redhat.com>2016-02-15 16:54:34 +0100
committerMartin Basti <mbasti@redhat.com>2016-02-25 16:31:15 +0100
commitb32c9d639ef8e3fa852fb07f9385ae7e7b48e00e (patch)
tree95c4f5e5e8f1344ae2b500a0a29299fe8d4efee6 /ipatests/test_xmlrpc
parentbba2355631c4cbadfb5089663c2a3af65a817fb7 (diff)
downloadfreeipa-b32c9d639ef8e3fa852fb07f9385ae7e7b48e00e.tar.gz
freeipa-b32c9d639ef8e3fa852fb07f9385ae7e7b48e00e.tar.xz
freeipa-b32c9d639ef8e3fa852fb07f9385ae7e7b48e00e.zip
ipatests: extend permission plugin test with new expected output
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_old_permission_plugin.py14
-rw-r--r--ipatests/test_xmlrpc/test_permission_plugin.py18
2 files changed, 32 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/test_old_permission_plugin.py b/ipatests/test_xmlrpc/test_old_permission_plugin.py
index 9e4b561a6..09f43fee8 100644
--- a/ipatests/test_xmlrpc/test_old_permission_plugin.py
+++ b/ipatests/test_xmlrpc/test_old_permission_plugin.py
@@ -524,6 +524,13 @@ class test_old_permission(Declarative):
'subtree': u'ldap:///%s' % users_dn,
},
],
+ messages=({
+ 'message': (u'Search result has been truncated to '
+ 'configured search limit.'),
+ 'code': 13017,
+ 'type': u'warning',
+ 'name': u'SearchResultTruncated'
+ },),
),
),
@@ -577,6 +584,13 @@ class test_old_permission(Declarative):
DN(res['dn']).endswith(DN(api.env.container_permission,
api.env.basedn)) and
'ipapermission' in res['objectclass']],
+ messages=({
+ 'message': (u'Search result has been truncated to '
+ 'configured search limit.'),
+ 'code': 13017,
+ 'type': u'warning',
+ 'name': u'SearchResultTruncated'
+ },),
),
),
diff --git a/ipatests/test_xmlrpc/test_permission_plugin.py b/ipatests/test_xmlrpc/test_permission_plugin.py
index 012946658..8026e8436 100644
--- a/ipatests/test_xmlrpc/test_permission_plugin.py
+++ b/ipatests/test_xmlrpc/test_permission_plugin.py
@@ -816,6 +816,15 @@ class test_permission(Declarative):
'ipapermlocation': [users_dn],
},
],
+ messages=(
+ {
+ 'message': (u'Search result has been truncated to '
+ 'configured search limit.'),
+ 'code': 13017,
+ 'type': u'warning',
+ 'name': u'SearchResultTruncated'
+ },
+ ),
),
),
@@ -871,6 +880,15 @@ class test_permission(Declarative):
DN(res['dn']).endswith(DN(api.env.container_permission,
api.env.basedn)) and
'ipapermission' in res['objectclass']],
+ messages=(
+ {
+ 'message': (u'Search result has been truncated to '
+ 'configured search limit.'),
+ 'code': 13017,
+ 'type': u'warning',
+ 'name': u'SearchResultTruncated'
+ },
+ ),
),
),