On 02/15/2016 04:59 PM, Milan Kubík wrote:
Patch attached. Applies on ipa-4-3 as well.



Updated version of patch fixes test_old_permission_plugin as well.

--
Milan Kubik

From 518f8dddd5240a14f256b5cc8542f66d3766a66b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Milan=20Kub=C3=ADk?= <mku...@redhat.com>
Date: Mon, 15 Feb 2016 16:54:34 +0100
Subject: [PATCH] ipatests: extend permission plugin test with new expected
 output

---
 ipatests/test_xmlrpc/test_old_permission_plugin.py | 12 ++++++++++++
 ipatests/test_xmlrpc/test_permission_plugin.py     | 16 ++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/ipatests/test_xmlrpc/test_old_permission_plugin.py b/ipatests/test_xmlrpc/test_old_permission_plugin.py
index 9e4b561a6f8ff4d6eac767f7f24e35ee4a910eff..c225d784d440751c09e7b16909fc8ad89f55c344 100644
--- a/ipatests/test_xmlrpc/test_old_permission_plugin.py
+++ b/ipatests/test_xmlrpc/test_old_permission_plugin.py
@@ -524,6 +524,12 @@ 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 +583,12 @@ 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 01294665814fc667f932272ee8bc3077583b67df..d641a2d078e0f275a44bbc539aef1352c023ae9b 100644
--- a/ipatests/test_xmlrpc/test_permission_plugin.py
+++ b/ipatests/test_xmlrpc/test_permission_plugin.py
@@ -816,6 +816,14 @@ 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 +879,14 @@ 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'
+                    },
+                ),
             ),
         ),
 
-- 
2.7.1

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to