From b32c9d639ef8e3fa852fb07f9385ae7e7b48e00e Mon Sep 17 00:00:00 2001 From: Milan KubĂ­k Date: Mon, 15 Feb 2016 16:54:34 +0100 Subject: ipatests: extend permission plugin test with new expected output Reviewed-By: Martin Basti --- ipatests/test_xmlrpc/test_old_permission_plugin.py | 14 ++++++++++++++ ipatests/test_xmlrpc/test_permission_plugin.py | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) (limited to 'ipatests/test_xmlrpc') 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' + }, + ), ), ), -- cgit