Skip to content

Commit

Permalink
Issue 6159 - Add a test to check URP add and delete conflict (#6160)
Browse files Browse the repository at this point in the history
Add URP tests that run if URP_VERY_LONG_TEST environment variable is set
One test spends 6 days and check the 5770 different way of running
the (Add, sync agmt 1, sync agmt 2, Del) sequence on 3 suppliers
and check that when everything is in sync, the entries are the same everywhere
Second test generate crossed entries and conflict entries
 (In theory that should not happen but we have sometime seen them)
And tries to remove one of the entry.
Then once everything is back in sync, it check that the entry are the same
 The second test fails - Apparently there is a problem with URP in that corner case
  • Loading branch information
progier389 committed May 27, 2024
1 parent 7df3957 commit 1a7abef
Show file tree
Hide file tree
Showing 3 changed files with 452 additions and 0 deletions.
33 changes: 33 additions & 0 deletions dirsrvtests/tests/data/urp/db1.ldif
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

# entry-id: 21
dn: cn=u22449+nsUniqueId=c6654281-f11b11ee-ad93a02d-7ba2db25
,dc=example,dc=com
objectClass;vucsn-660c4965000000010000: extensibleobject
objectClass;vucsn-660c4965000000010000: ldapsubentry
objectClass;vucsn-660c4965000000010000: top
cn;vucsn-660c4965000000010000;mdcsn-660c4965000000010000: u22449
creatorsName;vucsn-660c4965000000010000: cn=Directory Manager
modifiersName;vucsn-660c4965000000010000: cn=Directory Manager
createTimestamp;vucsn-660c4965000000010000: 20240402180733Z
modifyTimestamp;vucsn-660c4965000000010000: 20240402180733Z
nsUniqueId: c6654281-f11b11ee-ad93a02d-7ba2db25
nsds5ReplConflict;vucsn-660c4965000000020000: namingConflict (ADD) cn=u22449,d
c=example,dc=com
ConflictCSN;vucsn-660c4965000000010000: 660c4965000000010000
entryUUID: bf5a0e9e-07cb-4271-a85d-f8bc0e50e748
dsEntryDN: cn=u22449+nsUniqueId=c6654281-f11b11ee-ad93a02d-7ba2db25
,dc=example,dc=com

# entry-id: 22
dn: cn=u22449,dc=example,dc=com
objectClass;vucsn-660c4965000000020000: extensibleobject
objectClass;vucsn-660c4965000000020000: top
cn;vucsn-660c4965000000020000;mdcsn-660c4965000000020000: u22449
creatorsName;vucsn-660c4965000000020000: cn=Directory Manager
modifiersName;vucsn-660c4965000000020000: cn=Directory Manager
createTimestamp;vucsn-660c4965000000020000: 20240402180733Z
modifyTimestamp;vucsn-660c4965000000020000: 20240402180733Z
nsUniqueId: cd8c5081-f11b11ee-9829d059-db401164
entryUUID;vucsn-660c4965000000020000: 180e45bf-1fdf-4ee8-9eb9-a53e95276abb
dsEntryDN: cn=u22449,dc=example,dc=com

32 changes: 32 additions & 0 deletions dirsrvtests/tests/data/urp/db2.ldif
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# entry-id: 21
dn: cn=u22449,dc=example,dc=com
objectClass;vucsn-660c4965000000010000: extensibleobject
objectClass;vucsn-660c4965000000010000: top
cn;vucsn-660c4965000000010000;mdcsn-660c4965000000010000: u22449
creatorsName;vucsn-660c4965000000010000: cn=Directory Manager
modifiersName;vucsn-660c4965000000010000: cn=Directory Manager
createTimestamp;vucsn-660c4965000000010000: 20240402180733Z
modifyTimestamp;vucsn-660c4965000000010000: 20240402180733Z
nsUniqueId: c6654281-f11b11ee-ad93a02d-7ba2db25
entryUUID: bf5a0e9e-07cb-4271-a85d-f8bc0e50e748
dsEntryDN: cn=u22449,dc=example,dc=com

# entry-id: 22
dn: cn=u22449+nsUniqueId=cd8c5081-f11b11ee-9829d059-db401164,dc=example,dc=com
objectClass;vucsn-660c4965000000020000: extensibleobject
objectClass;vucsn-660c4965000000020000: top
objectClass;vucsn-660c4965000000020000: ldapsubentry
cn;vucsn-660c4965000000020000;mdcsn-660c4965000000020000: u22449
creatorsName;vucsn-660c4965000000020000: cn=Directory Manager
modifiersName;vucsn-660c4965000000020000: cn=Directory Manager
createTimestamp;vucsn-660c4965000000020000: 20240402180733Z
modifyTimestamp;vucsn-660c4965000000020000: 20240402180733Z
nsUniqueId: cd8c5081-f11b11ee-9829d059-db401164
nsds5ReplConflict;vucsn-660c4965000000020000: namingConflict (ADD) cn=u22449,d
c=example,dc=com
ConflictCSN;vucsn-660c4965000000020000: 660c4965000000020000
entryUUID;vucsn-660c4965000000020000: 180e45bf-1fdf-4ee8-9eb9-a53e95276abb
dsEntryDN: cn=u22449+nsUniqueId=cd8c5081-f11b11ee-9829d059-db401164,dc=example
,dc=com

Loading

0 comments on commit 1a7abef

Please sign in to comment.