| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Bob Add Tests |
| | | #@TestSuitePurpose Test the add functionality for OpenDS |
| | | #@TestSuiteID Add Tests |
| | | #@TestSuiteGroup Bob |
| | | #@TestGroup Bob/BobAddTests |
| | | #@TestScript BobAddTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Bob adds. |
| | | */ |
| | | @Test |
| | | public class BobAddTests extends BobTests |
| | | { |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Bob Add Tests |
| | | #@TestName Bob Add 1 |
| | | #@TestID BobAdd1 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPModify.mainModify() |
| | | with the filename to the appropriate ldif file. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | */ |
| | | /** |
| | | * Add a small jpeg photo to an existing entry. |
| | | * |
| | |
| | | compareExitCode(retCode, expCode); |
| | | } |
| | | |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Bob Add Tests |
| | | #@TestName Bob Add 2 |
| | | #@TestID BobAdd2 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPModify.mainModify() |
| | | with the filename to the appropriate ldif file. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | */ |
| | | /** |
| | | * Add a large jpeg photo to an existing entry. |
| | | * |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Bob Delete Tests |
| | | #@TestSuitePurpose Test the delete functionality for OpenDS |
| | | #@TestSuiteID Delete Tests |
| | | #@TestSuiteGroup Bob |
| | | #@TestGroup Bob/BobDeleteTests |
| | | #@TestScript BobDeleteTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Bob deletes. |
| | | */ |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Bob Modify Tests |
| | | #@TestSuitePurpose Test the modify functionality for OpenDS |
| | | #@TestSuiteID Modify Tests |
| | | #@TestSuiteGroup Bob |
| | | #@TestGroup Bob/BobModifyTests |
| | | #@TestScript BobModTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Bob modifies. |
| | | */ |
| | | @Test |
| | | public class BobModTests extends BobTests |
| | | { |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Bob Modify Tests |
| | | #@TestName Bob Modify 1 |
| | | #@TestID BobModify1 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPModify.mainModify() |
| | | with the filename to the appropriate ldif file. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | */ |
| | | /** |
| | | * Replace a small jpeg photo in an existing entry. |
| | | * |
| | |
| | | compareExitCode(retCode, expCode); |
| | | } |
| | | |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Bob Modify Tests |
| | | #@TestName Bob Modify 2 |
| | | #@TestID BobModify2 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPModify.mainModify() |
| | | with the filename to the appropriate ldif file. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | */ |
| | | /** |
| | | * Replace a large jpeg photo in an existing entry. |
| | | * |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Bob Modify RDN Tests |
| | | #@TestSuitePurpose Test the modify rdn functionality for OpenDS |
| | | #@TestSuiteID Modify RDN Tests |
| | | #@TestSuiteGroup Bob |
| | | #@TestGroup Bob/BobModifyRDNTests |
| | | #@TestScript BobModrdnTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Bob modify rdns. |
| | | */ |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Bob Setup |
| | | #@TestSuitePurpose Setup methods for the Bob test suites |
| | | #@TestSuiteID Setup |
| | | #@TestSuiteGroup Bob |
| | | #@TestGroup Bob/Setup |
| | | #@TestScript BobStartup.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Bob startup. |
| | | */ |
| | | @Test |
| | | public class BobStartupTests extends BobTests |
| | | { |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Bob Setup |
| | | #@TestName Bob Setup |
| | | #@TestID BobStartup1 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPModify.mainModify() |
| | | with the filename to the appropriate ldif file. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | */ |
| | | /** |
| | | * Add entries that are required for the Bob Tests. |
| | | * |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Core Entry Cache |
| | | #@TestSuitePurpose To check that the entry cache is managed correctly. |
| | | #@TestSuiteID Entry Cache |
| | | #@TestSuiteGroup Core |
| | | #@TestGroup Core/EntryCache |
| | | #@TestScript CoreEntryCacheTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Core version reporting tests. |
| | | */ |
| | | @Test |
| | | public class CoreEntryCacheTests extends CoreTests |
| | | { |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Core Entry Cache |
| | | #@TestName Entry Cache 1 |
| | | #@TestID CoreEntryCache1 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPSearch.mainSearch() |
| | | for entry, cn=version,cn=monitor, with the single |
| | | pipe filter, |. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | */ |
| | | /** |
| | | * Check the response of OpenDS when an ldap search request is conducted |
| | | * with a single pipe character ("|") for an existing entry. |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Search Size Limit |
| | | #@TestSuitePurpose To check that the search size limit is enforced. |
| | | #@TestSuiteID Search Size Limit |
| | | #@TestSuiteGroup Core |
| | | #@TestGroup Core/SearchSizeLimit |
| | | #@TestScript CoreSearchSizeLimitTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Core functional tests for search size limits. |
| | | */ |
| | | @Test |
| | | public class CoreSearchSizeLimitTests extends CoreTests |
| | | { |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Search Size Limit |
| | | #@TestName Search Size Limit 1 |
| | | #@TestID CoreSearchSizeLimit1 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPSearch.mainSearch() |
| | | with a search size limit defined in the command |
| | | line and the search size is exceeded. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 4 |
| | | */ |
| | | /** |
| | | * Check the response of OpenDS when an ldap search request is conducted |
| | | * with a search size limit defined in the command line and the search |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Search Time Limit |
| | | #@TestSuitePurpose To check that the search time limit is enforced. |
| | | #@TestSuiteID Search Time Limit |
| | | #@TestSuiteGroup Core |
| | | #@TestGroup Core/SearchTimeLimit |
| | | #@TestScript CoreSearchTimeLimitTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Core functional tests for search size limits. |
| | | */ |
| | |
| | | import org.testng.annotations.*; |
| | | import org.opends.server.tools.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Core Setup |
| | | #@TestSuitePurpose Setup methods for core server test suites |
| | | #@TestSuiteID Setup |
| | | #@TestSuiteGroup Core |
| | | #@TestGroup Core/Setup |
| | | #@TestScript CoreStartupTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Core startup. |
| | | */ |
| | | @Test |
| | | public class CoreStartupTests extends CoreTests |
| | | { |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Core Setup |
| | | #@TestName Core Setup 1 |
| | | #@TestID CoreStartup1 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPModify.mainModify() |
| | | with the filename to the appropriate ldif file. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | */ |
| | | /** |
| | | * Add entries that are required for the Core Tests. |
| | | * |
| | |
| | | compareExitCode(retCode, expCode); |
| | | } |
| | | |
| | | /* |
| | | Place test-specific test information here. |
| | | The tag, TestMarker, be the same as the marker, TestSuiteName. |
| | | #@TestMarker Core Setup |
| | | #@TestName Core Setup 2 |
| | | #@TestID CoreStartup2 |
| | | #@TestPreamble |
| | | #@TestSteps Client calls static method LDAPModify.mainModify() |
| | | with the filename to the appropriate ldif file. |
| | | #@TestPostamble |
| | | #@TestResult Success if OpenDS returns 0 |
| | | */ |
| | | /** |
| | | * To add 1000 extra entries that are required for some of the Core Tests. |
| | | * |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Core True/False Filters |
| | | #@TestSuitePurpose To check that true/false filters are correctly handled |
| | | #@TestSuiteID True/False Filters |
| | | #@TestSuiteGroup Core |
| | | #@TestGroup Core/TFFFilters |
| | | #@TestScript CoreTFFFiltersTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Core true/false filter tests. |
| | | */ |
| | |
| | | import org.opends.server.tools.*; |
| | | import java.io.*; |
| | | |
| | | /* |
| | | Place suite-specific test information here. |
| | | #@TestSuiteName Server Version Reporting |
| | | #@TestSuitePurpose To check that the server version reporting is correct |
| | | #@TestSuiteID Server Version Reporting |
| | | #@TestSuiteGroup Core |
| | | #@TestGroup Core/VersionReport |
| | | #@TestScript CoreVersionReportTests.java |
| | | #@TestHTMLLink blahblah |
| | | */ |
| | | /** |
| | | * This class contains the TestNG tests for the Core version reporting tests. |
| | | */ |