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

pgamba
29.14.2007 c8816d7020a4bf6dc3cd5b116b40a94bf7acabc3
refs
author pgamba <pgamba@localhost>
Monday, January 29, 2007 17:14 +0100
committer pgamba <pgamba@localhost>
Monday, January 29, 2007 17:14 +0100
commitc8816d7020a4bf6dc3cd5b116b40a94bf7acabc3
tree 96070e01d93a1f9df6f49e69a55c7e65be2c6eee tree | zip | gz
parent 87f4db9c6b6779447693fdb53dca69881e2c528b 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
opendj-sdk/opends/src/server/org/opends/server/synchronization/changelog/Changelog.java 70 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/synchronization/common/LogMessages.java 16 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/changelog/ChangelogTest.java 231 ●●●●● diff | view | raw | blame | history