| | |
| | | */ |
| | | package org.opends.server.backends; |
| | | |
| | | import static org.assertj.core.api.Assertions.*; |
| | | import static org.opends.messages.ReplicationMessages.*; |
| | | import static org.opends.server.TestCaseUtils.*; |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import static org.opends.server.replication.protocol.OperationContext.*; |
| | | import static org.opends.server.types.ResultCode.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | import java.io.ByteArrayOutputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | |
| | | |
| | | import com.forgerock.opendj.util.Pair; |
| | | |
| | | import static org.assertj.core.api.Assertions.*; |
| | | import static org.opends.messages.ReplicationMessages.*; |
| | | import static org.opends.server.TestCaseUtils.*; |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import static org.opends.server.replication.protocol.OperationContext.*; |
| | | import static org.opends.server.types.ResultCode.*; |
| | | import static org.opends.server.util.CollectionUtils.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | @SuppressWarnings("javadoc") |
| | | public class ChangelogBackendTestCase extends ReplicationTestCase |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void searchInCookieModeOnOneSuffixUsingEmptyCookie() throws Exception |
| | | { |
| | | String test = "EmptyCookie"; |
| | |
| | | debugInfo(test, "Ending search with success"); |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void searchInCookieModeOnOneSuffix() throws Exception |
| | | { |
| | | String test = "CookieOneSuffix"; |
| | |
| | | searchOp = searchChangelogUsingCookie("(targetdn=*" + test + "*,o=test)", cookies[3], nbEntries, SUCCESS, test); |
| | | |
| | | debugInfo(test, "Ending search with success"); |
| | | |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | |
| | | debugInfo(test, "Ending test successfully"); |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void searchInDraftModeWithInvalidChangeNumber() throws Exception |
| | | { |
| | | String testName = "UnknownChangeNumber"; |
| | |
| | | debugInfo(testName, "Ending test with success"); |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void searchInDraftModeOnOneSuffix() throws Exception |
| | | { |
| | | long firstChangeNumber = 1; |
| | |
| | | debugInfo(testName, "Ending search with success"); |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void searchInDraftModeOnOneSuffixMultipleTimes() throws Exception |
| | | { |
| | | replicationServer.getChangelogDB().setPurgeDelay(0); |
| | |
| | | /** |
| | | * Verifies that is not possible to read the changelog without the changelog-read privilege |
| | | */ |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void searchingWithoutPrivilegeShouldFail() throws Exception |
| | | { |
| | | AuthenticationInfo nonPrivilegedUser = new AuthenticationInfo(); |
| | |
| | | assertEquals(op.getErrorMessage().toMessage(), NOTE_SEARCH_CHANGELOG_INSUFFICIENT_PRIVILEGES.get()); |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void persistentSearch() throws Exception |
| | | { |
| | | // TODO |
| | |
| | | // ExternalChangeLogTest#ECLReplicationServerFullTest16 |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void simultaneousPersistentSearches() throws Exception |
| | | { |
| | | // TODO |
| | |
| | | /** |
| | | * With an empty RS, a search should return only root entry. |
| | | */ |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void searchWhenNoChangesShouldReturnRootEntryOnly() throws Exception |
| | | { |
| | | String testName = "EmptyRS"; |
| | |
| | | debugInfo(testName, "Ending test successfully"); |
| | | } |
| | | |
| | | @Test(enabled=false) |
| | | @Test |
| | | public void operationalAndVirtualAttributesShouldNotBeVisibleOutsideRootDSE() throws Exception |
| | | { |
| | | String testName = "attributesVisibleOutsideRootDSE"; |
| | |
| | | private List<Modification> createAttributeModif(String attributeName, String valueString) |
| | | { |
| | | Attribute attr = Attributes.create(attributeName, valueString); |
| | | return newList(new Modification(ModificationType.REPLACE, attr)); |
| | | return newArrayList(new Modification(ModificationType.REPLACE, attr)); |
| | | } |
| | | |
| | | private UpdateMsg generateModDNMsg(String baseDn, CSN csn, String testName) throws Exception |