diff options
author | Martin Babinsky <mbabinsk@redhat.com> | 2016-03-18 09:56:08 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-04-13 17:52:22 +0200 |
commit | 62bb478e112cd4677e681f4750c5f5e5c9221607 (patch) | |
tree | e91d8bf788c5306a161b14c62489a22c6dd08811 /ipatests | |
parent | 1f0959735f9828a09439f17f1468dcd3dfb914db (diff) | |
download | freeipa-62bb478e112cd4677e681f4750c5f5e5c9221607.tar.gz freeipa-62bb478e112cd4677e681f4750c5f5e5c9221607.tar.xz freeipa-62bb478e112cd4677e681f4750c5f5e5c9221607.zip |
specify type of exceeded limit when warning about truncated search results
API commands inheriting from LDAPSearch should mention which limit was
exceeded in the warning message sent with truncated results.
https://fedorahosted.org/freeipa/ticket/5677
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r-- | ipatests/test_xmlrpc/test_old_permission_plugin.py | 8 | ||||
-rw-r--r-- | ipatests/test_xmlrpc/test_permission_plugin.py | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ipatests/test_xmlrpc/test_old_permission_plugin.py b/ipatests/test_xmlrpc/test_old_permission_plugin.py index 09f43fee8..1af76f6a6 100644 --- a/ipatests/test_xmlrpc/test_old_permission_plugin.py +++ b/ipatests/test_xmlrpc/test_old_permission_plugin.py @@ -525,8 +525,8 @@ class test_old_permission(Declarative): }, ], messages=({ - 'message': (u'Search result has been truncated to ' - 'configured search limit.'), + 'message': (u'Search result has been truncated: ' + u'Configured size limit exceeded'), 'code': 13017, 'type': u'warning', 'name': u'SearchResultTruncated' @@ -585,8 +585,8 @@ class test_old_permission(Declarative): api.env.basedn)) and 'ipapermission' in res['objectclass']], messages=({ - 'message': (u'Search result has been truncated to ' - 'configured search limit.'), + 'message': (u'Search result has been truncated: ' + u'Configured size limit exceeded'), '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 8026e8436..df5498a61 100644 --- a/ipatests/test_xmlrpc/test_permission_plugin.py +++ b/ipatests/test_xmlrpc/test_permission_plugin.py @@ -818,8 +818,8 @@ class test_permission(Declarative): ], messages=( { - 'message': (u'Search result has been truncated to ' - 'configured search limit.'), + 'message': (u'Search result has been truncated: ' + u'Configured size limit exceeded'), 'code': 13017, 'type': u'warning', 'name': u'SearchResultTruncated' @@ -882,8 +882,8 @@ class test_permission(Declarative): 'ipapermission' in res['objectclass']], messages=( { - 'message': (u'Search result has been truncated to ' - 'configured search limit.'), + 'message': (u'Search result has been truncated: ' + u'Configured size limit exceeded'), 'code': 13017, 'type': u'warning', 'name': u'SearchResultTruncated' |