summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-01 01:11:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:18 -0500
commit1b5cb7309d13b472eff12e1bfb5191ca8e0391ae (patch)
tree1a5c3a09ca31283e0ece166debb66b723c991e7f /testprogs
parent99054eb40a4ce3e2b065132129cb5f8db4db0f78 (diff)
downloadsamba-1b5cb7309d13b472eff12e1bfb5191ca8e0391ae.tar.gz
samba-1b5cb7309d13b472eff12e1bfb5191ca8e0391ae.tar.bz2
samba-1b5cb7309d13b472eff12e1bfb5191ca8e0391ae.zip
r9857: Fix rename/delete issues
(This used to be commit d6dce7ef3eb21a5e90244cf2ce7403ab43b12d63)
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/ejs/samba3sam13
1 files changed, 5 insertions, 8 deletions
diff --git a/testprogs/ejs/samba3sam b/testprogs/ejs/samba3sam
index 26c3248f07..14ddd011e9 100755
--- a/testprogs/ejs/samba3sam
+++ b/testprogs/ejs/samba3sam
@@ -164,21 +164,18 @@ assert(msg.length >= 1);
assert(msg[0].description == undefined);
println("Renaming record...");
-ok = s4.rename("cn=Niemand,ou=Tests,dc=vernstok,dc=nl", "cn=Iemand,ou=Tests,dc=vernstok,dc=nl");
+ok = s4.rename("cn=Niemand,ou=Tests,dc=vernstok,dc=nl", "cn=Niemand,dc=vernstok,dc=nl");
-println("Checking whether old record is gone...");
+println("Checking whether DN has changed...");
msg = s4.search("(cn=Niemand)");
-assert(msg.length == 0);
-
-println("Checking whether new record is there...");
-msg = s4.search("(cn=Iemand)");
assert(msg.length == 1);
+assert(msg[0].dn == "cn=Niemand,dc=vernstok,dc=nl");
println("Deleting record...");
-ok = s4.del("cn=Iemand,ou=Tests,dc=vernstok,dc=nl");
+ok = s4.del("cn=Niemand,dc=vernstok,dc=nl");
assert(ok);
println("Checking whether record is gone...");
-msg = s4.search("(cn=Iemand)");
+msg = s4.search("(cn=Niemand)");
assert(msg.length == 0);