| | |
| | | // First and last should be ok whenever a request has been done or not |
| | | // in compat mode. |
| | | ECLCompatTestLimits(1,4,true);replicationServer.clearDb(); |
| | | |
| | | |
| | | // Test with a mix of domains, a mix of DSes |
| | | ECLTwoDomains(); replicationServer.clearDb(); |
| | | |
| | |
| | | int ts = ECLCompatWriteReadAllOps(1); |
| | | |
| | | ECLCompatNoControl(1); |
| | | |
| | | |
| | | // Write additional changes and read ECL from a provided draft change number |
| | | ts = ECLCompatWriteReadAllOps(5);replicationServer.clearDb(); |
| | | |
| | |
| | | |
| | | // Test request from a provided change number - read 6 |
| | | ECLCompatReadFrom(6); |
| | | |
| | | // Test request from change number 1, just check that Cookie controls |
| | | |
| | | // Test request from change number 1, just check that Cookie controls |
| | | // are not returned with entries, when not requested. |
| | | ECLCompatNoControl(1); |
| | | |
| | |
| | | + stackTraceToSingleLineString(e)); |
| | | } |
| | | } |
| | | |
| | | |
| | | private int ECLCompatWriteReadAllOps(int firstDraftChangeNumber) |
| | | { |
| | | String tn = "ECLCompatWriteReadAllOps/" + String.valueOf(firstDraftChangeNumber); |
| | |
| | | checkValue(resultEntry,"changelogcookie","o=test:"+cn1.toString()+";"); |
| | | checkValue(resultEntry,"targetentryuuid",user1entryUUID); |
| | | checkValue(resultEntry,"changenumber",String.valueOf(firstDraftChangeNumber+0)); |
| | | checkValue(resultEntry,"targetuniqueid","11111111-11121113-11141111-11111115"); |
| | | checkValue(resultEntry,"targetuniqueid",user1entryUUID); |
| | | } else if (i==2) |
| | | { |
| | | // check the ADD entry has the right content |
| | |
| | | checkValue(resultEntry,"changelogcookie","o=test:"+cn1.toString()+";"); |
| | | checkValue(resultEntry,"targetentryuuid",user1entryUUID); |
| | | checkValue(resultEntry,"changenumber",String.valueOf(firstDraftChangeNumber+0)); |
| | | checkValue(resultEntry,"targetuniqueid","11111111-11121113-11141111-11111115"); |
| | | checkValue(resultEntry,"targetuniqueid",user1entryUUID); |
| | | } else if (i==2) |
| | | { |
| | | // check the ADD entry has the right content |
| | |
| | | + stackTraceToSingleLineString(e)); |
| | | } |
| | | debugInfo(tn, "Ending test with success"); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | debugInfo(tn, "Ending test with success"); |
| | | } |
| | | |
| | | |
| | | private void ECLOperationalAttributesFailTest() |
| | | { |
| | | String tn = "ECLOperationalAttributesFailTest"; |
| | |
| | | try |
| | | { |
| | | LinkedHashSet<String> attributes = new LinkedHashSet<String>(); |
| | | |
| | | |
| | | attributes.add("firstchangenumber"); |
| | | attributes.add("lastchangenumber"); |
| | | attributes.add("changelog"); |
| | |
| | | null); |
| | | waitOpResult(searchOp, ResultCode.SUCCESS); |
| | | assertEquals(searchOp.getSearchEntries().size(), 1); |
| | | |
| | | |
| | | LinkedList<SearchResultEntry> entries = searchOp.getSearchEntries(); |
| | | assertEquals(entries.size(), 1); |
| | | for (SearchResultEntry resultEntry : entries) |
| | |
| | | assertEquals(getAttributeValue(resultEntry, "lastExternalChangelogCookie"), |
| | | null); |
| | | } |
| | | |
| | | |
| | | debugInfo(tn, "Ending test with success"); |
| | | } |
| | | catch(Exception e) |