Hi,

this patch fixes failing tests for the user plugin where preserved
attribute is missing.

Tomas


From bb209a5679fcebfd5329f3dfd1537d8bb7802c22 Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@redhat.com>
Date: Tue, 21 Jul 2015 13:17:56 +0200
Subject: [PATCH] tests: user_plugin: Add preserved flag when --all is used

---
 ipatests/test_xmlrpc/test_user_plugin.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ipatests/test_xmlrpc/test_user_plugin.py b/ipatests/test_xmlrpc/test_user_plugin.py
index 304a6d99288b1ccc72cddc45e7f4150402975972..1e226d0d8e180850adc8f6f544a18150571f71e3 100644
--- a/ipatests/test_xmlrpc/test_user_plugin.py
+++ b/ipatests/test_xmlrpc/test_user_plugin.py
@@ -300,7 +300,8 @@ class test_user(Declarative):
                         objectclass=add_oc(
                             objectclasses.user,
                             u'ipantuserattrs'
-                        ) + [u'ipauser']
+                        ) + [u'ipauser'],
+                        preserved=False
                     ),
                 ],
                 summary=u'1 user matched',
@@ -1162,6 +1163,7 @@ class test_user(Declarative):
                     manager=[renameduser1],
                     objectclass=add_oc(objectclasses.user_base,
                                        u'ipantuserattrs'),
+                    preserved=False,
                     omit=['mepmanagedentry'],
                 ),
                 value=user2,
@@ -1191,6 +1193,7 @@ class test_user(Declarative):
                     memberof_group=[group1],
                     objectclass=add_oc(objectclasses.user_base,
                                        u'ipantuserattrs'),
+                    preserved=False,
                     omit=['mepmanagedentry'],
                 ),
                 value=user2,
-- 
2.1.0

-- 
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