summaryrefslogtreecommitdiff
path: root/testprogs/ejs
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-01 00:38:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:18 -0500
commit99054eb40a4ce3e2b065132129cb5f8db4db0f78 (patch)
treed4adf3160f8e7f7c6779a781516b6d4991cf9c25 /testprogs/ejs
parent05db3024ba6a8cd0b3182595f4f6f2f1f0987e44 (diff)
downloadsamba-99054eb40a4ce3e2b065132129cb5f8db4db0f78.tar.gz
samba-99054eb40a4ce3e2b065132129cb5f8db4db0f78.tar.bz2
samba-99054eb40a4ce3e2b065132129cb5f8db4db0f78.zip
r9855: Finish ldb_map testsuite
Update PLAN Some more small other fixes (This used to be commit 31cd5d55a9754b4e670be5d3687dfaaab8adaefc)
Diffstat (limited to 'testprogs/ejs')
-rwxr-xr-xtestprogs/ejs/samba3sam60
1 files changed, 60 insertions, 0 deletions
diff --git a/testprogs/ejs/samba3sam b/testprogs/ejs/samba3sam
index 75e9f65863..26c3248f07 100755
--- a/testprogs/ejs/samba3sam
+++ b/testprogs/ejs/samba3sam
@@ -122,3 +122,63 @@ msg = s3.search("(cn=Niemand)");
assert(msg.length >= 1);
assert(msg[0].displayName == "Niemand");
+println("Adding attribute...");
+ok = s4.modify("
+dn: cn=Niemand,ou=Tests,dc=vernstok,dc=nl
+changetype: modify
+add: description
+description: Blah
+");
+assert(ok);
+
+println("Checking whether changes are still there...");
+msg = s4.search("(cn=Niemand)");
+assert(msg.length >= 1);
+assert(msg[0].description == "Blah");
+
+println("Modifying attribute...");
+ok = s4.modify("
+dn: cn=Niemand,ou=Tests,dc=vernstok,dc=nl
+changetype: modify
+replace: description
+description: Blie
+");
+assert(ok);
+
+println("Checking whether changes are still there...");
+msg = s4.search("(cn=Niemand)");
+assert(msg.length >= 1);
+assert(msg[0].description == "Blie");
+
+println("Deleting attribute...");
+ok = s4.modify("
+dn: cn=Niemand,ou=Tests,dc=vernstok,dc=nl
+changetype: modify
+delete: description
+");
+assert(ok);
+
+println("Checking whether changes are no longer there...");
+msg = s4.search("(cn=Niemand)");
+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");
+
+println("Checking whether old record is gone...");
+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);
+
+println("Deleting record...");
+ok = s4.del("cn=Iemand,ou=Tests,dc=vernstok,dc=nl");
+assert(ok);
+
+println("Checking whether record is gone...");
+msg = s4.search("(cn=Iemand)");
+assert(msg.length == 0);
+