diff options
author | Milan KubĂk <mkubik@redhat.com> | 2016-02-15 16:54:34 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-02-25 16:31:15 +0100 |
commit | b32c9d639ef8e3fa852fb07f9385ae7e7b48e00e (patch) | |
tree | 95c4f5e5e8f1344ae2b500a0a29299fe8d4efee6 | |
parent | bba2355631c4cbadfb5089663c2a3af65a817fb7 (diff) | |
download | freeipa-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>
-rw-r--r-- | ipatests/test_xmlrpc/test_old_permission_plugin.py | 14 | ||||
-rw-r--r-- | ipatests/test_xmlrpc/test_permission_plugin.py | 18 |
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' + }, + ), ), ), |