summaryrefslogtreecommitdiff
path: root/source4/dsdb/tests
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-08-01 11:26:08 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-08-01 14:00:10 +0200
commit542396ccd9a8b06a769300c5952477e13e3db8ae (patch)
treeb32786f9efe01d09dc212f992f9bce7efba3ab59 /source4/dsdb/tests
parent7ea1796fa44335858360031b778c5867b1c4c3fe (diff)
downloadsamba-542396ccd9a8b06a769300c5952477e13e3db8ae.tar.gz
samba-542396ccd9a8b06a769300c5952477e13e3db8ae.tar.bz2
samba-542396ccd9a8b06a769300c5952477e13e3db8ae.zip
s4:ldap.py - add a test for "CN=System" object rename behaviour
Diffstat (limited to 'source4/dsdb/tests')
-rwxr-xr-xsource4/dsdb/tests/python/ldap.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/dsdb/tests/python/ldap.py b/source4/dsdb/tests/python/ldap.py
index 9911d5d249..b48ee265c8 100755
--- a/source4/dsdb/tests/python/ldap.py
+++ b/source4/dsdb/tests/python/ldap.py
@@ -937,6 +937,14 @@ objectClass: container
except LdbError, (num, _):
self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
+ # Performs some other constraints testing
+
+ try:
+ ldb.rename("CN=Policies,CN=System," + self.base_dn, "CN=Users2," + self.base_dn)
+ self.fail()
+ except LdbError, (num, _):
+ self.assertEquals(num, ERR_OTHER)
+
def test_rename_twice(self):
"""Tests the rename operation twice - this corresponds to a past bug"""
print "Tests the rename twice operation"""