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

neil_a_wilson
16.32.2006 5097fbda6e7c1b26da60721455eae79e1cf1920e
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
commit5097fbda6e7c1b26da60721455eae79e1cf1920e
tree 9f3e6a4e49ce56b314143bdfedb8748c83dab37c tree | zip | gz
parent a705f763f283d4687d9ae7587b7f4f4e8516e878 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
opends/src/server/org/opends/server/messages/ToolMessages.java 23 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/LDAPSearch.java 46 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/LDAPSearchOptions.java 26 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPDeleteTestCase.java 75 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPModifyTestCase.java 138 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPSearchTestCase.java 91 ●●●●● diff | view | raw | blame | history