From 0a63d2e72a3a070c9e5f68c2681919dcc9557349 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Thu, 1 Jun 2017 16:05:51 -0400 Subject: [PATCH] Ticket 49008 - Adjust CI test for new memberOf behavior Bug Description: In the current version the MO plugin now adds a valid objectclass to an entry. This breaks the test design as some operations were expected to fail, but now they pass. Fix Description: Set the auot add objectclass to an objectclass that does not allow memberOf. This now allows the test work as designed. https://pagure.io/389-ds-base/issue/49008 Reviewed by: ? --- dirsrvtests/tests/tickets/ticket49008_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dirsrvtests/tests/tickets/ticket49008_test.py b/dirsrvtests/tests/tickets/ticket49008_test.py index 673b2f9..332cf22 100644 --- a/dirsrvtests/tests/tickets/ticket49008_test.py +++ b/dirsrvtests/tests/tickets/ticket49008_test.py @@ -32,7 +32,12 @@ def test_ticket49008(T): A.agreement.pause(AtoC) C.agreement.pause(CtoA) + # Enable memberOf on Master B B.plugins.enable(name=PLUGIN_MEMBER_OF) + + # Set the auto OC to an objectclass that does NOT allow memberOf + B.modify_s('cn=MemberOf Plugin,cn=plugins,cn=config', + [(ldap.MOD_REPLACE, 'memberofAutoAddOC', 'referral')]) B.restart(timeout=10) # add a few entries allowing memberof -- 2.9.4