mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

pgamba
29.14.2007 d15ad8f9bb0aa8d3e7da66123c7471ab1e7dc7a8
refs
author pgamba <pgamba@localhost>
Monday, January 29, 2007 17:14 +0100
committer pgamba <pgamba@localhost>
Monday, January 29, 2007 17:14 +0100
commitd15ad8f9bb0aa8d3e7da66123c7471ab1e7dc7a8
tree d3fad3ee810d9938a2659e0b8719d5b5f90cc590 tree | zip | gz
parent 9e21dfe722f5f3e0436491470766b06adc6dbbb2 view | diff
Fix #794 unit test should cover changelog to changelog communications

This does not allow to cover the code that deals with changelog server to
changelog server communications.

In order to have more than one changelog services running in the same instance
and instance layout, the serverID has been added to the changelogstate dbName.

Changelog db path is now configurable,

The 2 following tests have been implemented:

+ /**
+ * Chaining tests of the changelog code with 2 changelog servers involved
+ * 2 tests are done here (itest=0 or itest=1)
+ *
+ * Test 1
+ * - Create changelog server 1
+ * - Create changelog server 2 connected with changelog server 1
+ * - Create and connect client 1 to changelog server 1
+ * - Create and connect client 2 to changelog server 2
+ * - Make client1 publish changes
+ * - Check that client 2 receives the changes published by client 1
+ *
+ * Test 2
+ * - Create changelog server 1
+ * - Create and connect client1 to changelog server 1
+ * - Make client1 publish changes
+ * - Create changelog server 2 connected with changelog server 1
+ * - Create and connect client 2 to changelog server 2
+ * - Check that client 2 receives the changes published by client 1
+ *
+ */
3 files modified
317 ■■■■■ changed files
opends/src/server/org/opends/server/synchronization/changelog/Changelog.java 70 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/synchronization/common/LogMessages.java 16 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/changelog/ChangelogTest.java 231 ●●●●● diff | view | raw | blame | history