mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
16.32.2006 dff791d6bdd93ee5127094248f5e3cbc0d529653
refs
author neil_a_wilson <neil_a_wilson@localhost>
Thursday, November 16, 2006 02:32 +0100
committer neil_a_wilson <neil_a_wilson@localhost>
Thursday, November 16, 2006 02:32 +0100
commitdff791d6bdd93ee5127094248f5e3cbc0d529653
tree 1879af452a4f23fe92fa3c20b30c36cabb1a4efa tree | zip | gz
parent 7b9f523d093aa772ddf9848b19e9199f3d2ca89c view | diff
Update the ldapsearch tool to provide a --countEntries option that can be used
to count the number of matching entries. The count will be displayed as a
comment at the end of the results, and will also be used as the exit code for
the tool. This addresses issue #1013.

This commit also includes test cases for this issue as well as the use of
alternate human-readable names for certain types of controls. These test cases
are more applicable to issue #989, but need the --countEntries option for
verifying that the LDAP subentries control is working as expected.
6 files modified
399 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java 23 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPSearch.java 46 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPSearchOptions.java 26 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPDeleteTestCase.java 75 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPModifyTestCase.java 138 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPSearchTestCase.java 91 ●●●●● diff | view | raw | blame | history