mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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.
This commit is contained in:
parent
2415ba6d37
commit
28e85ee47a
@ -1,3 +1,4 @@
|
|||||||
|
# Replace the existing SINGLE-VALUE gecos with a new value thru add
|
||||||
dn: uid=tuser, cn=test, cn=accounts, $SUFFIX
|
dn: uid=tuser, cn=test, cn=accounts, $SUFFIX
|
||||||
add:gecos: Test User New2
|
add:gecos: Test User New2
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ class test_update(object):
|
|||||||
Test the updater adding a new value to a single-valued attribute
|
Test the updater adding a new value to a single-valued attribute
|
||||||
"""
|
"""
|
||||||
modified = self.updater.update([self.testdir + "4_update.update"])
|
modified = self.updater.update([self.testdir + "4_update.update"])
|
||||||
assert(modified == False)
|
assert(modified == True)
|
||||||
|
|
||||||
def test_5_update(self):
|
def test_5_update(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user