...
Test 1
Trying to delete dn: cn=not present, c=MNN, c=WW should fail
Test 2 & 3
Trying to delete dn: cn=alex karasulu, ou=people, c=MNN, c=WW should throw a PartialResultException
...
We should be able to delete dn: o=MNN, c=WW
Test 5 & 7
Trying to delete dn: ou=people, c=MNN, c=WW should throw a ReferralException
...
We should be able to delete dn: ou=people, c=MNN, c=WW
Compare Operation handling
...
Doing a compare on attribute Objectclass for cn=not present, c=MNN, c=WW should fail with a NoSuchObject exception
...
Doing a compare on attribute Objectclass for cn=alex karasulu, ou=people, c=MNN, c=WW should throw a PartialResultexception
...
Doing a compare on attribute Objectclass for c=MNN, c=WW should return a success
test 5 & 7
Doing a compare on attribute Objectclass for ou=people, c=MNN, c=WW should throw a ReferralException
...
Doing a compare on attribute Objectclass for ou=people, c=MNN, c=WW should should return a success
...
test | Target exists | is a referral | has an ancestor | JNDI/Protocol handling | ManageDsaIT present | Description |
---|---|---|---|---|---|---|
1 | no | irrelevant | no | irrelevent | irrelevant | Throws a NoSuchObject exception |
2 |
|
| yes | JNDI | irrelevant | Throws a PartialResultException |
3 |
|
|
| Core API | irrelevant | Throws a PartialResultException |
4 | yes | no | no | irrelevant | irrelevant | Modify the entry on the server |
5 |
| yes | no | JNDI | throw | Throw a LdapReferralException |
6 |
|
|
|
| ignore | Modify the referral on the server |
7 |
|
|
| Core API | no | Throw a LdapReferralException |
8 |
|
|
|
| yes | Modify the referral on the server |
Test 1
Doing a modify on cn=not present, c=MNN, c=WW should fail with a NoSuchObjectException
Test 2 & 3
Doing a modify on cn=alex karasulu, ou=people, c=MNN, c=WW should throw a LdapPartialResult exception
Test 4
Doing a modify on c=MNN, c=WW should modify the entry on the server
Test 5 & 7
Doing a modify on ou=people, c=MNN, c=WW should throw a LdapReferral exception
Test 6 & 8
Doing a modify on ou=people, c=MNN, c=WW should modify the referral on the server
...
We will analyze those three kind of modifications separately.
Rename operation
test | Superior exists | New RDN Target exists | is a referral | has an ancestor | JNDI/Protocol handling | ManageDsaIT present | Description |
---|---|---|---|---|---|---|---|
1 | no | no | irrelevant | no | irrelevent | irrelevant | Throws a NoSuchObject exception |
2 |
|
|
| yes | JNDI | irrelevant | Throws a PartialResultException |
3 |
|
|
|
| Core API | irrelevant | Throws a PartialResultException |
4 |
| yes | irrelevant | no | irrelevent | irrelevant | Throws a EntryAlreadyExists exception |
5 | yes | no | no | irrelevant | irrelevant | Rename the entry on the server | |
6 | 5 |
| yes | no | JNDI | throw | Throw a LdapReferralException |
7 | 6 |
|
|
|
| ignore | Rename the referral on the server |
8 | 7 |
|
|
| Core API | no | Throw a LdapReferralException |
9 | 8 |
|
|
|
| yes | Rename the referral on the server |
10 | yes | yes | no | irrelevant | irrelevant | Throws a EntryAlreadyExists exception |
Test 1
Renaming to cn=absent on cn=not present, c=MNN, c=WW should fail with a NoSuchObjectException
Test 2 & 3
Renaming to cn=absent, c=MNN, c=WW on should fail with a NoSuchObjectException
Test 2 & 3
Renaming new name on cn=alex karasulu, ou=people, c=MNN, c=WW to cn=new name, ou=people, c=MNN, c=WW should throw a LdapPartialResult exception
Test 4
Renaming cn=absent, c=WW to c=MNN, c=WW on should fail with a EntryAlreadyExists
Test 5
Renaming to cn=new name on c=MNN, c=WW should modify to cn=new name, c=WW should rename the entry on the server
Test
...
6 &
...
8
Renaming ou=people, c=MNN, c=WW to cn=new name on ou=people, c=MNN, c=WW should throw a LdapReferral exception
Test
...
7 &
...
9
Renaming ou=people, c=MNN, c=WW to cn=new name on ou=people, c=MNN, c=WW should modify rename the referral on the server
Test 10
Renaming ou=people, c=MNN, c=WW" to *ou=roles,c=MNN, c=WW should throw an EntryAlreadyExist exeption
Move operation
Move and rename operation
...