On 07/28/2016 06:08 PM, Ganna Kaihorodova wrote:
Greetings!

ACK

Best regards,
Ganna Kaihorodova
Associate Software Quality Engineer


----- Original Message -----
From: "Lenka Doudova" <ldoud...@redhat.com>
To: "freeipa-devel" <freeipa-devel@redhat.com>
Sent: Wednesday, July 13, 2016 3:21:25 PM
Subject: [Freeipa-devel] [PATCH 0027][Tests] Fix failing automember tests in    
4.3

Hi,

providing patch to fix two failing automember tests in 4.3 branch. The
reason of the failure was the output normalization (specifically manager
attribute for user).

The patch is intended for ipa-4-3 branch only.


Lenka


Hi,

minor fix to the patch - added link to ticket to commit message.

Lenka
From 94b5b6fa52ac8e5984792f47fec06241a383bb51 Mon Sep 17 00:00:00 2001
From: Lenka Doudova <ldoud...@redhat.com>
Date: Wed, 13 Jul 2016 15:14:11 +0200
Subject: [PATCH] Tests: Fix failing automember tests

Two tests in xmlrpc/automember suite were failing as a result of manager data normalization in user attributes. Tests are fixed to reflect the change.

https://fedorahosted.org/freeipa/ticket/6147
---
 ipatests/test_xmlrpc/test_automember_plugin.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ipatests/test_xmlrpc/test_automember_plugin.py b/ipatests/test_xmlrpc/test_automember_plugin.py
index be0f7390565ed739aa66bc0c5c6d23d25d67df92..dde386286d26ddf4537fbc89647f1afecf51fcad 100644
--- a/ipatests/test_xmlrpc/test_automember_plugin.py
+++ b/ipatests/test_xmlrpc/test_automember_plugin.py
@@ -472,8 +472,7 @@ class test_automember(Declarative):
                 summary=u'Added user "tuser1"',
                 result=get_user_result(
                     user1, u'Test', u'User1', 'add',
-                    manager=[DN(('uid', 'mscott'), ('cn', 'users'),
-                                ('cn', 'accounts'), api.env.basedn)]
+                    manager=[manager1]
                 )
             ),
         ),
@@ -1394,8 +1393,7 @@ class test_automember(Declarative):
                 result=get_user_result(
                     user1, u'Test', u'User1', 'add',
                     memberof_group=[group1, u'ipausers'],
-                    manager=[DN(('uid', 'mscott'), ('cn', 'users'),
-                                ('cn', 'accounts'), api.env.basedn)]
+                    manager=[manager1]
                 ),
             ),
         ),
-- 
2.7.4

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