svn commit: samba r9855 - in branches/SAMBA_4_0/testprogs/ejs: .

jelmer at samba.org jelmer at samba.org
Thu Sep 1 00:38:28 GMT 2005


Author: jelmer
Date: 2005-09-01 00:38:28 +0000 (Thu, 01 Sep 2005)
New Revision: 9855

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9855

Log:
Finish ldb_map testsuite
Update PLAN
Some more small other fixes

Modified:
   branches/SAMBA_4_0/testprogs/ejs/samba3sam


Changeset:
Modified: branches/SAMBA_4_0/testprogs/ejs/samba3sam
===================================================================
--- branches/SAMBA_4_0/testprogs/ejs/samba3sam	2005-09-01 00:37:52 UTC (rev 9854)
+++ branches/SAMBA_4_0/testprogs/ejs/samba3sam	2005-09-01 00:38:28 UTC (rev 9855)
@@ -122,3 +122,63 @@
 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);
+



More information about the samba-cvs mailing list