From 343e9de6f8f2bbf0ae32b8bd140964583fefd825 Mon Sep 17 00:00:00 2001
From: abobrov <abobrov@localhost>
Date: Tue, 20 Oct 2009 15:57:03 +0000
Subject: [PATCH] - RFC 3672 Subentries Control implementation : make earlier drafts based implementation obsolete; keep ldapSubEntry OC search matching criteria for backward compatibility.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPSearchTestCase.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPSearchTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPSearchTestCase.java
index 6de452a..36754b7 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPSearchTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPSearchTestCase.java
@@ -1654,11 +1654,11 @@
"-s", "sub",
"--countEntries",
"--noPropertiesFile",
- "-J", OID_LDAP_SUBENTRIES + ":true",
+ "--subEntries",
"(objectClass=*)"
};
- assertEquals(LDAPSearch.mainSearch(args, false, true, null, System.err), 2);
+ assertEquals(LDAPSearch.mainSearch(args, false, true, null, System.err), 1);
args = new String[]
{
@@ -1666,15 +1666,14 @@
"-w", "password",
"-h", "127.0.0.1",
"-p", String.valueOf(TestCaseUtils.getServerLdapPort()),
- "-b", "o=test",
- "-s", "sub",
+ "-b", "cn=test,o=test",
+ "-s", "base",
"--countEntries",
"--noPropertiesFile",
- "-J", "subentries:true",
"(objectClass=*)"
};
- assertEquals(LDAPSearch.mainSearch(args, false, true, null, System.err), 2);
+ assertEquals(LDAPSearch.mainSearch(args, false, true, null, System.err), 1);
}
--
Gitblit v1.10.0