Commit graph

23 commits

Author SHA1 Message Date
Joachim Bauch
98a8465e12
Move Goroutines helpers to test package. 2026-01-08 10:23:59 +01:00
Joachim Bauch
62587796ce
Move logging code to separate package. 2025-12-09 15:26:47 +01:00
Joachim Bauch
9363049e0f
Allow running tests with mock DNS discovery to run in parallel. 2025-12-05 12:02:33 +01:00
Joachim Bauch
4986122493
Run tests in parallel where possible. 2025-12-05 11:09:01 +01:00
Joachim Bauch
6ca41dee61
Don't use global logger. 2025-11-20 09:42:40 +01:00
Joachim Bauch
11dd532502
Not allowed to run tests with mock dns lookup in parallel. 2025-08-18 09:52:48 +02:00
Joachim Bauch
ed11ef775c
Fix flaky test "Test_GrpcClients_DnsDiscovery".
Wait until initial hostname check has been performed before continuing test.
Otherwise the initial check could be executed too late and breaks assumptions in the test.
2025-04-17 09:47:03 +02:00
Joachim Bauch
aaaf8cc743
Check version of cluster nodes and log warning if different. 2025-01-16 09:37:40 +01:00
Joachim Bauch
03cad99b8d
Switch to "github.com/stretchr/testify" for tests. 2024-09-03 13:50:52 +02:00
Joachim Bauch
0eb234b24d
Run tests in parallel and catch log output from tests. 2024-04-25 15:21:54 +02:00
Joachim Bauch
b77525603c
Enable goroutine leak checks for more tests. 2024-04-23 10:53:55 +02:00
Joachim Bauch
0cd4099f7b
Add locking to "wakeupChanForTesting" of GRPC clients. 2024-01-30 17:03:46 +01:00
Joachim Bauch
b1c78f6e9d
Use DNS monitor from static GRPC clients configuration. 2024-01-30 17:03:45 +01:00
Joachim Bauch
fd29f83454
Use "struct{}" channel if only used as signaling mechanism. 2023-06-15 11:30:28 +02:00
Joachim Bauch
73808f5a68
Update for changed etcd config API. 2023-06-12 11:42:13 +02:00
Joachim Bauch
89637c0a51
Test: add timeout while waiting for etcd event. 2023-01-17 15:41:51 +01:00
Joachim Bauch
b2da4002a4
grpc: Reload certificate if file has changed and support mutual authentication. 2022-07-04 11:05:21 +02:00
Joachim Bauch
44bf8b74c2
grpc: Make sure DNS discovery of clients continues if initial lookup failed. 2022-07-01 11:42:49 +02:00
Joachim Bauch
15dabeee1e
grpc: Check clients for own server id asychronously.
The external address of the (own) GRPC server might only be reachable after
some time, so performing the check only initially could fail but will
succeed later.
2022-07-01 10:22:16 +02:00
Joachim Bauch
01858a89f4
grpc: Enable DNS discovery for GRPC clients. 2022-06-30 11:35:35 +02:00
Joachim Bauch
20cc51c2fe
grpc: Automatically detect if a target is the current server itself.
This allows configuring the same list of targets for all instances without
having to setup the "own" address differently for each server.
2022-06-30 11:35:35 +02:00
Joachim Bauch
0e144906a4
Added tests for clustered behaviour. 2022-06-30 11:35:33 +02:00
Joachim Bauch
25dabf910d
Allow configuring GRPC targets through etcd. 2022-06-30 11:35:32 +02:00