Monday, June 12, 2017

[389-commits] [389-ds-base] 01/01: Ticket 49008 - Fix MO plugin betxn test

This is an automated email from the git hooks/post-receive script.

mreynolds pushed a commit to branch 389-ds-base-1.3.6
in repository 389-ds-base.

commit 6bd1b7d756363a39ce6c62bd55951be65e79f6f0
Author: Mark Reynolds <mreynolds@redhat.com>
Date: Mon Jun 12 14:48:07 2017 -0400

Ticket 49008 - Fix MO plugin betxn test

Description: Adjust betxn testcase for the new MO plugin auto add
objectclass behavior.

https://pagure.io/389-ds-base/issue/49008

Reviewed by: mreynolds(one line commit rule)

(cherry picked from commit d42024e54878ed233c6763aa3019ac2ae8847079)
---
dirsrvtests/tests/suites/betxns/betxn_test.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dirsrvtests/tests/suites/betxns/betxn_test.py b/dirsrvtests/tests/suites/betxns/betxn_test.py
index f487757..ed8acbf 100644
--- a/dirsrvtests/tests/suites/betxns/betxn_test.py
+++ b/dirsrvtests/tests/suites/betxns/betxn_test.py
@@ -27,7 +27,7 @@ def test_betxn_init(topology_st):

def test_betxt_7bit(topology_st):
'''
- Test that the 7-bit plugin correctly rejects an invlaid update
+ Test that the 7-bit plugin correctly rejects an invalid update
'''

log.info('Running test_betxt_7bit...')
@@ -142,7 +142,8 @@ def test_betxn_memberof(topology_st):
# Enable and configure memberOf plugin
topology_st.standalone.plugins.enable(name=PLUGIN_MEMBER_OF)
try:
- topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_REPLACE, 'memberofgroupattr', 'member')])
+ topology_st.standalone.modify_s(PLUGIN_DN, [(ldap.MOD_REPLACE, 'memberofgroupattr', 'member'),
+ (ldap.MOD_REPLACE, 'memberofAutoAddOC', 'referral')])
except ldap.LDAPError as e:
log.fatal('test_betxn_memberof: Failed to update config(member): error ' + e.message['desc'])
assert False

--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org

No comments:

Post a Comment