From 28e85ee47aa6e71262b9bf50758da079e2089b76 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 1 Jul 2011 15:21:03 -0400 Subject: Fix test failure in updater when adding values to a single-value attr The ipaldap.py code was updated to consider the schema when making changes and does a REPLACE on single-value attributes. So when you do an add in an update it will effectively replace the value instead of ignoring it. --- tests/test_install/4_update.update | 1 + tests/test_install/test_updates.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_install/4_update.update b/tests/test_install/4_update.update index d02cfcd3c..0aef7494f 100644 --- a/tests/test_install/4_update.update +++ b/tests/test_install/4_update.update @@ -1,3 +1,4 @@ +# Replace the existing SINGLE-VALUE gecos with a new value thru add dn: uid=tuser, cn=test, cn=accounts, $SUFFIX add:gecos: Test User New2 diff --git a/tests/test_install/test_updates.py b/tests/test_install/test_updates.py index 58cfc11a4..eb376f191 100644 --- a/tests/test_install/test_updates.py +++ b/tests/test_install/test_updates.py @@ -126,7 +126,7 @@ class test_update(object): Test the updater adding a new value to a single-valued attribute """ modified = self.updater.update([self.testdir + "4_update.update"]) - assert(modified == False) + assert(modified == True) def test_5_update(self): """ -- cgit