| | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | /** |
| | | * An entry with a entryUUID |
| | | * An entry with a entryUUID. |
| | | */ |
| | | private Entry personWithUUIDEntry; |
| | | private Entry personWithSecondUniqueID; |
| | |
| | | private String user1entryUUID; |
| | | |
| | | /** |
| | | * A "person" entry |
| | | * A "person" entry. |
| | | */ |
| | | private Entry personEntry; |
| | | private int replServerPort; |
| | |
| | | } |
| | | |
| | | /** |
| | | * Add an entry in the database |
| | | * Add an entry in the database. |
| | | */ |
| | | private CSN addEntry(Entry entry) throws Exception |
| | | { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Delete an entry in the database |
| | | * Delete an entry in the database. |
| | | */ |
| | | private void delEntry(DN dn) throws Exception |
| | | { |
| | |
| | | assertConflictAutomaticallyResolved(alertCount); |
| | | |
| | | |
| | | // |
| | | // Check that when a delete is conflicting with Add of some entries |
| | | // below the deleted entries, the child entry that have been added |
| | | // before the deleted is replayed gets renamed correctly. |
| | | // |
| | | |
| | | // add domain1 entry with 2 children : domain2 and domain3 |
| | | addEntry(domain1); |
| | |
| | | delEntry(conflictDomain3dn); |
| | | |
| | | |
| | | // |
| | | // Check that when a delete is replayed over an entry which has child |
| | | // those child are also deleted |
| | | // |
| | | |
| | | // add domain1 entry with 2 children : domain2 and domain3 |
| | | addEntry(domain1); |
| | | domain1uid = getEntryUUID(domain1dn); |
| | |
| | | delEntry(conflictDomain2dn); |
| | | delEntry(conflictDomain3dn); |
| | | |
| | | // |
| | | // Check that when an entry is added on one master below an entry |
| | | // that is currently deleted on another master, the replay of the |
| | | // add on the second master cause the added entry to be renamed |
| | | // |
| | | broker.publish(addMsg(gen, domain2, domain2uid, domain1uid)); |
| | | |
| | | // check that conflict entry was created |