| | |
| | | /** |
| | | * Launcher. |
| | | */ |
| | | @Test(enabled=false) |
| | | @Test(enabled=true) |
| | | public void ECLReplicationServerTest() |
| | | { |
| | | // Test all types of ops. |
| | |
| | | ECLIncludeAttributes();replicationServer.clearDb(); |
| | | } |
| | | |
| | | @Test(enabled=false, groups="slow", dependsOnMethods = { "ECLReplicationServerTest"}) |
| | | @Test(enabled=true, groups="slow", dependsOnMethods = { "ECLReplicationServerTest"}) |
| | | public void ECLReplicationServerFullTest() |
| | | { |
| | | // *********************************************** |
| | |
| | | // Test simultaneous persistent searches in draft compat mode. |
| | | ECLSimultaneousPsearches();replicationServer.clearDb(); |
| | | |
| | | // *********************************************** |
| | | // Entry attributes |
| | | // *********************************************** |
| | | ECLIncludeAttributes();replicationServer.clearDb(); |
| | | } |
| | | |
| | | //======================================================= |
| | |
| | | s1test2.stop(); |
| | | s2test.stop(); |
| | | s2test2.stop(); |
| | | sleep(500); |
| | | |
| | | // removeTestBackend2(backend2); |
| | | } |
| | |
| | | ReplicationBroker server01 = openReplicationSession( |
| | | DN.decode(TEST_ROOT_DN_STRING), 1201, |
| | | 100, replicationServerPort, |
| | | 1000, true); |
| | | 5000, true); |
| | | |
| | | String user1entryUUID = "11111111-1112-1113-1114-111111111115"; |
| | | String baseUUID = "22222222-2222-2222-2222-222222222222"; |
| | |
| | | server01.publish(delMsg); |
| | | debugInfo(tn, " publishes " + delMsg.getChangeNumber()); |
| | | sleep(500); |
| | | server01.stop(); |
| | | |
| | | ECLCompatTestLimits(expectedFirst, expectedLast+1); |
| | | |
| | | server01.stop(); |
| | | } |
| | | catch(Exception e) |
| | | { |
| | |
| | | debugInfo(tn, "Starting test\n\n"); |
| | | Backend backend2 = null; |
| | | Backend backend3 = null; |
| | | ReplicationBroker server01 = null; |
| | | DeleteOperationBasis delOp =null; |
| | | LDAPReplicationDomain domain2 = null; |
| | | LDAPReplicationDomain domain3 = null; |
| | | LDAPReplicationDomain domain21 = null; |
| | | SynchronizationProvider replicationPlugin2 = null; |
| | | SynchronizationProvider replicationPlugin3 = null; |
| | | DN baseDn2 = null; |
| | | DN baseDn3 = null; |
| | | try |
| | |
| | | includeAttributes.add("sn"); |
| | | domainConf.setEclIncludes(includeAttributes); |
| | | domain2 = MultimasterReplication.createNewDomain(domainConf); |
| | | replicationPlugin2 = new MultimasterReplication(); |
| | | replicationPlugin2.completeSynchronizationProvider(); |
| | | |
| | | backend3 = initializeTestBackend(false, |
| | | TEST_ROOT_DN_STRING3, TEST_BACKEND_ID3); |
| | |
| | | includeAttributes.add("objectclass"); |
| | | domainConf.setEclIncludes(includeAttributes); |
| | | domain3 = MultimasterReplication.createNewDomain(domainConf); |
| | | replicationPlugin3 = new MultimasterReplication(); |
| | | replicationPlugin3.completeSynchronizationProvider(); |
| | | |
| | | domainConf = |
| | | new DomainFakeCfg(baseDn2, 1704, replServers); |
| | |
| | | domainConf.setEclIncludes(includeAttributes); |
| | | domain21 = MultimasterReplication.createNewDomain(domainConf); |
| | | |
| | | Set<String> attrList = new HashSet<String>(); |
| | | attrList.add(new String("cn")); |
| | | server01 = openReplicationSession( |
| | | DN.decode(TEST_ROOT_DN_STRING2), 1206, |
| | | 100, replicationServerPort, |
| | | 1000, true, -1 , domain21); |
| | | |
| | | sleep(1000); |
| | | |
| | | Entry e2 = createEntry(baseDn2); |
| | |
| | | { |
| | | try |
| | | { |
| | | server01.stop(); |
| | | // |
| | | delOp = new DeleteOperationBasis(connection, |
| | | InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, |
| | |
| | | // Cleaning |
| | | if (domain2 != null) |
| | | MultimasterReplication.deleteDomain(baseDn2); |
| | | if (replicationPlugin2 != null) |
| | | DirectoryServer.deregisterSynchronizationProvider(replicationPlugin2); |
| | | removeTestBackend2(backend2); |
| | | |
| | | if (domain3 != null) |
| | | MultimasterReplication.deleteDomain(baseDn3); |
| | | if (replicationPlugin3 != null) |
| | | DirectoryServer.deregisterSynchronizationProvider(replicationPlugin3); |
| | | removeTestBackend2(backend3); |
| | | } |
| | | catch(Exception e) {} |