| | |
| | | |
| | | package org.opends.server.replication.plugin; |
| | | |
| | | import org.opends.server.replication.protocol.LDAPUpdateMsg; |
| | | |
| | | import org.opends.server.replication.ReplicationTestCase; |
| | | import org.opends.server.replication.service.ReplicationBroker; |
| | | import org.opends.server.replication.common.ChangeNumber; |
| | | import org.opends.server.replication.protocol.AddMsg; |
| | | import org.opends.server.replication.protocol.ModifyMsg; |
| | | import org.opends.server.replication.protocol.UpdateMsg; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | | import org.opends.server.tools.LDAPModify; |
| | |
| | | ModifyMsg modMsg = new ModifyMsg(changeNum, dn, mods, entryuuid); |
| | | broker.publish(modMsg); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Test that historical information is correctly added when performaing ADD, |
| | | * MOD and MODDN operations. |
| | |
| | | |
| | | for (FakeOperation fake : ops) |
| | | { |
| | | UpdateMsg msg = (UpdateMsg) fake.generateMessage(); |
| | | LDAPUpdateMsg msg = (LDAPUpdateMsg) fake.generateMessage(); |
| | | AbstractOperation op = |
| | | msg.createOperation(InternalClientConnection.getRootConnection()); |
| | | op.setInternalOperation(true); |
| | |
| | | AddMsg addmsg = addOp.generateMessage(); |
| | | assertTrue(dn1.equals(DN.decode(addmsg.getDn()))); |
| | | assertTrue(addmsg.getUniqueId().equals(Historical.getEntryUuid(entry))); |
| | | String parentId = ReplicationDomain.findEntryId(dn1.getParent()); |
| | | String parentId = LDAPReplicationDomain.findEntryId(dn1.getParent()); |
| | | assertTrue(addmsg.getParentUid().equals(parentId)); |
| | | addmsg.createOperation(InternalClientConnection.getRootConnection()); |
| | | } else |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | assertEquals(count, assertCount); |
| | | } |
| | | } |