summaryrefslogtreecommitdiffstats
path: root/testprogs/ejs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-06-03 23:27:22 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-06-03 23:27:22 +1000
commit446748bfe1f06d0900e44fe8acafdf856d54486e (patch)
treefcd14deb2c2d1908f3db0552444415298803953f /testprogs/ejs
parentc674a09cac5ad550ea34e8f6748e874461db99c0 (diff)
downloadsamba-446748bfe1f06d0900e44fe8acafdf856d54486e.tar.gz
samba-446748bfe1f06d0900e44fe8acafdf856d54486e.tar.xz
samba-446748bfe1f06d0900e44fe8acafdf856d54486e.zip
Align the Python and EJS ldap tests.
We should now (need to review and compare them once more) be able to remove ldap.js (and once samba3sam.js is done, smbscript). Andrew Bartlett (This used to be commit f65e43e9456e8e951d172779cba53ab417114b20)
Diffstat (limited to 'testprogs/ejs')
-rwxr-xr-xtestprogs/ejs/ldap.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/testprogs/ejs/ldap.js b/testprogs/ejs/ldap.js
index 44e4c83e671..a5e6ab37c4c 100755
--- a/testprogs/ejs/ldap.js
+++ b/testprogs/ejs/ldap.js
@@ -486,11 +486,11 @@ sn: ldap user2
assert(res.msgs.length == 2);
}
- var res = ldb.search("(&(anr=testy ldap)(objectClass=user))");
- if (res.error != 0 || res.msgs.length != 2) {
- println("Found only " + res.msgs.length + " for (&(anr=\"testy ldap\")(objectClass=user))");
+ var res = ldb.search("(&(anr=\"testy ldap\")(objectClass=user))");
+ if (res.error != 0 || res.msgs.length != 0) {
+ println("Found " + res.msgs.length + " for (&(anr=\"testy ldap\")(objectClass=user))");
assert(res.error == 0);
- assert(res.msgs.length == 2);
+ assert(res.msgs.length == 0);
}
// Testing ldb.search for (&(anr=ldap)(objectClass=user))