TestCaseUtils.java: clearJEBackend() => clearBackend()
| | |
| | | { |
| | | for (Backend<?> backend : DirectoryServer.getBackends().values()) { |
| | | if (backend instanceof BackendImpl) { |
| | | clearJEBackend(backend.getBackendID()); |
| | | clearBackend(backend.getBackendID()); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * Clears all the entries from the JE backend determined by the backend id passed into the method. |
| | | * Clears all the entries from the backend determined by the backend id passed into the method. |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | public static void clearJEBackend(String backendId) throws Exception |
| | | public static void clearBackend(String backendId) throws Exception |
| | | { |
| | | clearJEBackend(backendId, null); |
| | | clearBackend(backendId, null); |
| | | } |
| | | |
| | | /** |
| | | * Clears all the entries from the JE backend determined by the backend id passed into the method. |
| | | * Clears all the entries from the backend determined by the backend id passed into the method. |
| | | * |
| | | * @param backendId The backend id to clear |
| | | * @param baseDN If not null, the suffix of the backend to create |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | public static void clearJEBackend(String backendId, String baseDN) throws Exception |
| | | public static void clearBackend(String backendId, String baseDN) throws Exception |
| | | { |
| | | Backend<?> b = DirectoryServer.getBackend(backendId); |
| | | if (clearBackend(b) && baseDN != null) |
| | |
| | | Reporter.log("Running aciTestCaseSetup"); |
| | | |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | |
| | | // Save Global ACI. |
| | |
| | | { |
| | | Reporter.log("Running aciTestCaseTearDown"); |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | |
| | | // Restore Global ACI. |
| | |
| | | */ |
| | | private void populateDB() throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | private void populateDB() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | @Test |
| | | public void testSimpleBindReferral() throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntry( |
| | | "dn: ou=people,dc=example,dc=com", |
| | |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.restartServer(); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.addEntries( |
| | | "dn: ou=people,dc=example,dc=com", |
| | | "objectClass: organizationalUnit", |
| | |
| | | |
| | | s.close(); |
| | | |
| | | // Cleanup. |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | |
| | | |
| | |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.restartServer(); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.addEntries( |
| | | "dn: ou=people,dc=example,dc=com", |
| | | "objectClass: organizationalUnit", |
| | |
| | | |
| | | s.close(); |
| | | |
| | | // Cleanup. |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | | |
| | | |
| | | import java.util.LinkedHashSet; |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | GroupManager groupManager = DirectoryServer.getGroupManager(); |
| | | groupManager.deregisterAllGroups(); |
| | |
| | | */ |
| | | @Test |
| | | public void testSubtreeDelete() throws Exception { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | GroupManager groupManager = DirectoryServer.getGroupManager(); |
| | | groupManager.deregisterAllGroups(); |
| | | addSubtreeGroupTestEntries(); |
| | |
| | | DN.valueOf("cn=group2,ou=groups,dc=example,dc=com")); |
| | | assertNull(group3); |
| | | |
| | | // Cleanup. |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Test |
| | | public void testSubtreeModify() throws Exception { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | GroupManager groupManager = DirectoryServer.getGroupManager(); |
| | | groupManager.deregisterAllGroups(); |
| | | addSubtreeGroupTestEntries(); |
| | |
| | | assertNotNull(newGroup3); |
| | | assertTrue(conn.isMemberOf(newGroup3, null)); |
| | | |
| | | // Cleanup. |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | |
| | | /** |
| | |
| | | public void testCompressedSchemaRefresh() throws Exception |
| | | { |
| | | String baseDN = "dc=example,dc=com"; |
| | | TestCaseUtils.clearJEBackend("userRoot", baseDN); |
| | | TestCaseUtils.clearBackend("userRoot", baseDN); |
| | | TestCaseUtils.addEntry("dn: cn=Test User," + baseDN, |
| | | "objectClass: top", "objectClass: person", |
| | | "objectClass: organizationalPerson", "sn: User", "cn: Test User"); |
| | |
| | | public void setUp() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.clearJEBackend("userRoot","dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot","dc=example,dc=com"); |
| | | |
| | | DN suffixDN = DN.valueOf(SUFFIX); |
| | | if (!DirectoryServer.entryExists(suffixDN)) |
| | |
| | | public void setUp() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | addTestEntries(); |
| | | } |
| | | |
| | |
| | | subentryList = manager.getCollectiveSubentries(testEntry.getName()); |
| | | assertThat(subentryList).isEmpty(); |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | |
| | | @BeforeMethod |
| | |
| | | public void setUp() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | // Add suffix entry. |
| | | DN suffixDN = DN.valueOf(SUFFIX); |
| | |
| | | @AfterClass |
| | | public void cleanUp() throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | // Add the example.com entry |
| | | TestCaseUtils.addEntry( |
| | |
| | | try |
| | | { |
| | | InvocationCounterPlugin.resetAllCounters(); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: ou=People,dc=example,dc=com", |
| | |
| | | try |
| | | { |
| | | InvocationCounterPlugin.resetAllCounters(); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: ou=Org 1,dc=example,dc=com", |
| | |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | entryDNType = DirectoryServer.getAttributeTypeOrNull("entrydn"); |
| | | assertNotNull(entryDNType); |
| | |
| | | String uuidString = |
| | | UUID.nameUUIDFromBytes(getBytes("dc=example,dc=com")).toString(); |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | Entry e = TestCaseUtils.addEntry( |
| | | "dn: dc=example,dc=com", |
| | |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | governingStructureRuleType = DirectoryServer.getAttributeTypeOrNull("governingstructurerule"); |
| | | assertNotNull(governingStructureRuleType); |
| | |
| | | "postalAddress: Aarika Atpco$59208 Elm Street$Youngstown, HI 57377", |
| | | "description: This is the description for Aarika Atpco."); |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | TestCaseUtils.addEntries(entries); |
| | | } |
| | |
| | | "postalAddress: Aarika Atpco$59208 Elm Street$Youngstown, HI 57377", |
| | | "description: This is the description for Aarika Atpco."); |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | TestCaseUtils.addEntries(entries); |
| | | } |
| | |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | structuralObjectClassType = DirectoryServer.getAttributeTypeOrNull("structuralobjectclass"); |
| | | assertNotNull(structuralObjectClassType); |
| | |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | subschemaSubentryType = DirectoryServer.getAttributeTypeOrNull("subschemasubentry"); |
| | | assertNotNull(subschemaSubentryType); |
| | |
| | | replaceAttrEntry(configDN, dsConfigUpdateInterval,"0 seconds"); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | addTestEntries("o=test"); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | addTestEntries("dc=example,dc=com"); |
| | | } |
| | | |
| | |
| | | //unit tests. |
| | | replaceAttrEntry(configDN, dsConfigAttrType,"seeAlso"); |
| | | replaceAttrEntry(configDN, dsConfigUpdateInterval,"0 seconds"); |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | //Add entries to two backends to test public naming context. |
| | | addTestEntries("o=test", 't'); |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | addTestEntries("dc=example,dc=com", 'x'); |
| | | uidConfigDN=DN.valueOf("cn=UID Unique Attribute ,cn=Plugins,cn=config"); |
| | | testConfigDN=DN.valueOf("cn=Test Unique Attribute,cn=Plugins,cn=config"); |
| | |
| | | @AfterClass |
| | | public void tearDown() throws Exception { |
| | | clearConfigEntries(); |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | clearAcis("o=test"); |
| | | TestCaseUtils.clearMemoryBackend(TestCaseUtils.TEST_BACKEND_ID); |
| | | } |
| | |
| | | // (like the test backend we use in every tests): backend is disabled then |
| | | // re-enabled and this clears the backend reference and thus the underlying |
| | | // data. So for this particular test, we use a classical backend. |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | // For most tests, a limited number of entries is enough |
| | | updatedEntries = newLDIFEntries(2); |
| | |
| | | + "ds-cfg-receive-status: true\n" |
| | | + "ds-cfg-window-size: " + WINDOW_SIZE; |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | addSynchroServerEntry(synchroServerLdif); |
| | | |
| | |
| | | callParanoiaCheck = false; |
| | | super.classCleanUp(); |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | paranoiaCheck(); |
| | | } |
| | |
| | | // re-enabled and this clears the backend reference and thus the underlying |
| | | // data. So for this particular test, we use a classical backend. Let's |
| | | // clear it and create the root entry |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | addEntry("dn: dc=example,dc=com\n" + "objectClass: top\n" |
| | | + "objectClass: domain\n"); |
| | | |
| | |
| | | entriesToCleanup.remove(DN.valueOf(EXAMPLE_DN)); |
| | | super.classCleanUp(); |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | TestCaseUtils.deleteDirectory(reSyncTempDir); |
| | | |
| | | paranoiaCheck(); |
| | |
| | | // We need a backend with a real configuration in cn=config as at import time |
| | | // the real domain will check for backend existence in cn=config. So we use |
| | | // dc=example,dc=com for this particular test. |
| | | clearJEBackend("userRoot"); |
| | | clearBackend("userRoot"); |
| | | |
| | | try |
| | | { |
| | |
| | | // We need a backend with a real configuration in cn=config as at import time |
| | | // the real domain will check for backend existence in cn=config. So we use |
| | | // dc=example,dc=com for this particular test. |
| | | clearJEBackend("userRoot"); |
| | | clearBackend("userRoot"); |
| | | |
| | | try |
| | | { |
| | |
| | | // going into degraded status, we need to send a lot of updates. This makes |
| | | // the memory test backend crash with OutOfMemoryError. So we prefer here |
| | | // a backend backed up with a file |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | |
| | | /** |
| | |
| | | callParanoiaCheck = false; |
| | | super.classCleanUp(); |
| | | |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | |
| | | paranoiaCheck(); |
| | | } |
| | |
| | | } |
| | | finally |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot"); |
| | | TestCaseUtils.clearBackend("userRoot"); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | private void populateEntriesForControl() throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.addEntries( |
| | | "dn: cn=user1,dc=example,dc=com", |
| | | "objectclass: inetorgperson", |
| | |
| | | /** Adds an entry for test. */ |
| | | private void addEntry() throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.addEntries( |
| | | "dn: cn=Jos\u00E9,dc=example, dc=com", |
| | | "objectClass: person", |
| | |
| | | } |
| | | finally |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | } |
| | | } |
| | | } |
| | |
| | | public void testSimplePagedResults() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: cn=device 1,dc=example,dc=com", |
| | |
| | | public void testSortWithPagedResults() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidGivenNameAscending() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidGivenNameDescending() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidGivenNameAscendingCaseExactOrderingMatch() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidSnAscendingGivenNameAscending() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidSnAscendingGivenNameDescending() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortEmptySortOrder() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortSortOrderMissingType() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortSortOrderMissingMatchingRule() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortUndefinedAttribute() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortUndefinedOrderingRule() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | { |
| | | // Test is supposed to fail in parsing arguments. But we do not |
| | | // want it to fail because there no backend to search in. |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortWithVLVAndPagedResults() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortWithVLV() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | String backendBaseDNName = "ds-cfg-base-dn"; |
| | | |
| | | // Initialize a backend with a base entry. |
| | | TestCaseUtils.clearJEBackend("userRoot", suffix); |
| | | TestCaseUtils.clearBackend("userRoot", suffix); |
| | | |
| | | // Check that suffix is accessible while suffix2 is not. |
| | | searchEntry(suffix, ResultCode.SUCCESS); |