Commit Graph
62 Commits
Author SHA1 Message Date
Wessels, Udo (PPN) 2b66121265 bug5910: remove not supported line in .project files so that current Eclipse version (2023-09) can import the projects. 2023-10-09 18:00:50 +02:00
Axel Uhl b0462d2233 mockito-4.8.1: upgraded Import-Package versions to 4.8.1 for mockito-core 2022-12-20 23:41:46 +01:00
Axel Uhl cbe9204f19 mockito-4.8.1: refactored all tests so they compile with mockito-core 4.8.1 2022-12-20 18:25:58 +01:00
Axel Uhl b72e696964 bug5792: reverting replication.testsupport to Import-Package for mockito and hamcrest 2022-12-14 05:51:37 -08:00
Axel Uhl a6363406be bug5792: introduce org.hamcrest-2.2.0, remove gwt-dev deps 2022-12-12 06:18:51 -08:00
Finn Huelsbusch d888c1fad9 added configuration for eclipse 2022-06 and updated the onboarding 2022-07-07 16:51:33 +02:00
Axel Uhl 0b863619d4 bug5611: upgraded RabbitMQ Java client to version 3.6.6 and use ConnectionFactory.setAutomaticRecoveryEnabled(true) 2021-08-01 09:20:14 +09:00
Axel Uhl 2c622e5b45 patched <!DOCTYPE projectDescription> into all project files to avoid info/warning in problems view about no grammar constraint 2021-06-19 12:45:03 +02:00
Axel Uhl 9ac4a3250f bug5563: replication messages bound for RabbitMQ fanout exchange now go through a Deque with a thread implementing a re-try strategy 2021-05-30 23:09:08 +02:00
Axel Uhl ac765dca84 bug4811: place a new "port" field in version.json in the "start" script and use it for replica registration; added new port fields to replication status, for both, replicatedfrom and replicatedby 2021-04-20 16:33:50 +02:00
Axel Uhl 8ac708992e bug5221: fixed handling of POST request for replication operations in test set-up 2020-07-07 11:05:51 +02:00
Axel Uhl 5a6f14e810 bug5221: adjusted AbstractServerReplicationTestSetUp such that it handles the POST requests for replication operations properly now 2020-07-07 01:13:46 +02:00
Axel Uhl 3117dec9ac formatting only 2020-05-11 01:09:24 +02:00
Axel Uhl edf73e9d57 bug3465: fixed regatta ID initialization 2020-05-09 00:40:12 +02:00
Axel Uhl 89e8bef9c8 Revert "removed PluginNature from our OSGi bundles; they are not Eclipse plugins";
according to https://bugs.eclipse.org/bugs/show_bug.cgi?id=544977#c21 the
scenario of using the ManifestBuilder without setting the PluginNature is
not a supported scenario. Besides, it doesn't help to get rid of the new
Eclipse warning regarding non-exported packages.

This reverts commit 063484e29f.
2019-05-28 21:54:20 +02:00
Axel Uhl 063484e29f removed PluginNature from our OSGi bundles; they are not Eclipse plugins 2019-05-27 22:53:30 +02:00
Steffen Schaefer 7f0bdb83e5 Bug 4965: Implemented mocked security for replication tests. This is
necessary because ReplicationServlet now checks permissions.
2019-04-04 08:35:14 +02:00
Steffen Schaefer 9f3c5e9dda Bug 4963: ReplicationMasterDescriptor is now aware of a bearer token.
The token is currently not given to remote calls and UI fields are
added.
2019-04-03 09:15:23 +02:00
Axel Uhl 6a2552a3fa try closing the socket instead of the streams;
this is also what happens in a try-with-resource

Change-Id: I53686c84f69149173e1894d0b9b3d26778c55b08
2019-01-23 11:14:28 +01:00
Axel Uhl dbf33e1693 catch SocketException; it seems a valid alternative to reading -1 if the server has closed the connection
Change-Id: Iaee1dd2a35cea0b00f338fd3bb8f2e13067813f8
2019-01-23 10:51:53 +01:00
Axel Uhl 6a26465cc5 reverted to per-byte request reading but close input stream before closing output stream on server
Change-Id: I711b6652838b53bda91e209c9573d58cfe73ad79
2019-01-23 10:27:13 +01:00
Axel Uhl 07ede58212 temporarily reverted request reading to the use of BufferedReader;
knowing it will kill the POST case I'd like to see whether this fixes
the "Connection reset" issue observed during test execution on Linux

Change-Id: I74879dc4a682759dad63184ed38cf5c575281fda
2019-01-23 10:13:51 +01:00
Axel Uhl 119ab574ca also close socket (again) after properly closing input stream
Change-Id: I74d9b6fe74decb8d1f43ed8bff8d2f72d2c8fe2b
2019-01-22 22:17:10 +01:00
Axel Uhl 9e130314f3 close socker input stream properly before leaving the socket to GC
Change-Id: I35484bc0523045e450f5c417c61012ef0a79b7a9
2019-01-22 21:16:35 +01:00
Axel Uhl bcb1346555 removed Socket.close() call in replication test frame to avoid killing client-side connection prematurely
Change-Id: I5793a2fdee9e4403323446e2eece9b4a84b1f538
2019-01-22 18:10:32 +01:00
Axel Uhl bb07391659 added test for sending replication operation to master through HTTP POST
Change-Id: Ie16a2abb308dc3ae860cf729374362d9b5d21516
2019-01-22 10:50:19 +01:00
Axel Uhl 34b360cc3e replication status under /replication/replication?action=STATUS
Change-Id: I63cfd64609e458690a89da3ed5478ee5f239579b
2019-01-18 17:35:58 +01:00
Axel Uhl 4c4752a748 extracted replication interfaces into separate bundle to avoid having to activate the replication service only for registering a replicable
Change-Id: I22e423efee06e653a9ed3b9bea13b3b0153f7156
2018-12-14 21:27:17 +01:00
Axel Uhl bed5e90087 fixed deprecation of "new Timeout(int)", replacing by Timeout.millis 2018-12-10 03:10:24 +01:00
Axel Uhl bd90f921dd added Automatic-Module-Name headers to satisfy Oxygen.3 Java9 warnings rule 2018-03-24 01:45:37 +01:00
Steffen Schaefer 9123771f34 normalized line endings 2017-05-16 09:42:02 +02:00
Axel Uhl a0bdce9eed use per-test separate exchange name and delete test exchange during tearDown
Change-Id: Ib2660fe79a2fae060d0c6d4c6c613fe1056e9428
2017-03-07 21:18:13 +01:00
Axel Uhl b408b7966e in AbstractServerReplicationTestSetUp fixed replica UUID written to stream
Change-Id: I777f06fe8e157670fe2787c361aa2093e6a579de
2017-02-24 11:39:27 +01:00
Steffen Schaefer 673907c017 Merge branch 'master' into bug2447
Conflicts:
	java/com.sap.sailing.feature/feature.xml
	java/pom.xml
2017-01-09 10:05:05 +01:00
Axel Uhl 7126902cf2 adding set of replicables or their IDs to master and replica descriptors and passing through to ReplicationServlet
Change-Id: I51a70718d94b161e747f2a887028fdeeb996f21a
2016-12-22 14:32:47 +01:00
Steffen Schaefer dd5d1fc745 Using junit and hamcrest from orbit / adjustments for different junit
bundle ID
2016-11-24 13:29:02 +01:00
Axel Uhl 97aeb5efa1 re-structured replication tests a little to mimic initial load and replica registration process better; added failing test for bug 3249 2015-08-20 16:53:57 +02:00
Axel Uhl d1a459c0e9 updated target platform to contain LZ4 compression algorithm; use it in replication code 2015-07-27 17:40:33 +02:00
Axel Uhl bff98361d0 added a test case for bug 2986 2015-06-20 15:04:57 +02:00
Axel Uhl a75a4cdef3 made local variable final to express it will never change 2015-03-30 21:55:02 +02:00
Axel Uhl 980f18914f make sure that if we have a replicator to wait for then we hold on to it in case it gets nulled out in between 2015-03-30 21:43:28 +02:00
Axel Uhl 824f975ba8 renamed isQueueEmpty to isQueueEmptyOrStopped; don't set thread context class loader in ReplicationReceiver: it's set in the replicable itself 2015-03-30 20:28:36 +02:00
Axel Uhl 26a286f243 re-establishing the effects of c74a3092661236b13ff0b667e1f08cc3fac11d22; need to serve the replication service's monitor properly as queue drains 2015-03-30 18:28:31 +02:00
Axel Uhl 273152b0b0 temporarily taking back the pre-mature attempt to wait for replication queues to drain during test execution (c74a309266) 2015-03-30 18:27:04 +02:00
Axel Uhl c74a309266 fixed bundle name for mongo driver in com.sap.sailing.feature's feature.xml 2015-03-30 16:30:38 +02:00
Axel Uhl 4f18c1c366 use any free server port for replication servlet in test mode 2015-03-30 02:09:38 +02:00
Fredrik Teschke eceabfa81b removed duplicate constructors (probably from cherry-pick & merge) 2015-02-14 13:40:51 +01:00
Fredrik Teschke f60733698e Merge branch 'ftes-mail-move-to-sse' into jbross-email-invitation
Conflicts:
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/AbstractServerReplicationTest.java
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/ConnectionResetAndReconnectTest.java
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/PrematureOperationReceiptTest.java
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/RaceLogReplicationTest.java
	java/com.sap.sailing.server.replication.test/src/com/sap/sailing/server/replication/test/RegattaLogReplicationTest.java
	java/com.sap.sse.security.replication.test/META-INF/MANIFEST.MF
	java/com.sap.sse.security.replication.test/src/com/sap/sse/security/replication/test/AbstractSecurityReplicationTest.java
2015-02-14 06:53:07 +01:00
Fredrik Teschke 6b6c657452 fix test failures due to previous refactoring of abstract replication test classes 2015-02-14 06:51:39 +01:00
Fredrik Teschke de39d6a40a refactor AbstractServerReplicationTest to enable tests with multiple replicable services in future 2015-02-13 20:28:45 +01:00