summaryrefslogtreecommitdiff
path: root/testprogs/ejs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-10-31 04:41:36 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:47 +0100
commita4c79f06ae84057cb635f8b9fbb280d865afce7b (patch)
tree54e76437900c3e273571ac72cbe2df0ec1326686 /testprogs/ejs
parent464dd2ada160002a888e3b2dd17cf0072fbcedf3 (diff)
downloadsamba-a4c79f06ae84057cb635f8b9fbb280d865afce7b.tar.gz
samba-a4c79f06ae84057cb635f8b9fbb280d865afce7b.tar.bz2
samba-a4c79f06ae84057cb635f8b9fbb280d865afce7b.zip
r25762: This test belongs best with the other checks for a valid parent, in
the objectclass module. Andrew Bartlett (This used to be commit 16a292fcb134adec110cbc4c8f0fb03323750a45)
Diffstat (limited to 'testprogs/ejs')
-rwxr-xr-xtestprogs/ejs/ldap.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/testprogs/ejs/ldap.js b/testprogs/ejs/ldap.js
index 9be30c8eff..b5c73e4f65 100755
--- a/testprogs/ejs/ldap.js
+++ b/testprogs/ejs/ldap.js
@@ -295,6 +295,13 @@ cn: LDAPtestUSER4
assert(ok.error == 53);
}
+ println("Testing ldb.rename (into non-existent container) of cn=ldaptestcontainer2," + base_dn + " to cn=ldaptestcontainer,cn=ldaptestcontainer3," + base_dn);
+ ok = ldb.rename("cn=ldaptestcontainer2," + base_dn, "cn=ldaptestcontainer,cn=ldaptestcontainer3," + base_dn);
+ if (ok.error != 53 && ok.error != 80) { /* LDAP_UNWILLING_TO_PERFORM or LDAP_OTHER*/
+ println(ok.errstr);
+ assert(ok.error == 53 || ok.error == 80);
+ }
+
println("Testing delete (should fail, not a leaf node) of renamed cn=ldaptestcontainer2," + base_dn);
ok = ldb.del("cn=ldaptestcontainer2," + base_dn);
if (ok.error != 66) { /* LDB_ERR_NOT_ALLOWED_ON_NON_LEAF */