Commit Graph

17 Commits

Author SHA1 Message Date
f6b0211336 throttler now ignoring duplicate events. 2024-08-24 22:23:39 +02:00
538a697770 multiple clients connecting to multiple agents.
Clients cannot yet be started in parallel. due to subtle issue in test
setup with accept
2024-08-22 22:44:54 +02:00
7d25f39f5b test for connecting clients and bidirectional communication to agent.
Required lots of rework since the GOBChannel appeared to be reading
ahead of the data it actually needed. Now using more low-level IO
to send the clientId over to the agent instead.
2024-08-22 16:16:02 +02:00
e0b6e644b6 added a few tests for inmemoryconnection. 2024-08-21 16:58:15 +02:00
c25b4b4df9 now using testsuite also for linkedmap 2024-08-20 12:00:23 +02:00
d5a6d70bc4 restructuring test code by introducing a testsupport package
Making it easy 6to start a porof server in tests.
2024-08-20 09:01:46 +02:00
b3f5eead9b some more tests added. 2024-08-20 01:02:44 +02:00
45595a34aa table testing with go routines only really works well when standard
assertions are ued. With suite.Required() there are issues in getting
the test results correct.

Instead, use standard assertions and use suite.T().Failed() to do
early returns.
2024-08-20 00:52:57 +02:00
3867b0432d a lot of progress in setting up tests for the communication.
Wrote ChannelReadWriter that simulates a connection inmemory.
This is used by the agentserver test for testing the initialization. The
first test is already working.
2024-08-19 22:31:02 +02:00
b95314c964 typo 2024-08-19 19:50:36 +02:00
91ea4632a3 now using a testsuite for the throttler tests. 2024-08-19 19:42:51 +02:00
60cda211ef some moving around of files in the throttling package to make the
structure more clear.
2024-08-18 20:56:22 +02:00
52160a368c more generalization of how time is handled in the tests.
Asynchronous variant that is easier to use and multi-thread safe.
2024-08-16 21:08:44 +02:00
ca68419ba2 moved the throttler to its own package. 2024-08-16 19:29:50 +02:00
fd18a63360 now using maps of Guid to Agent/Client in the state, working towards the definitive solution.
Using LinkedMap that preserves insertion order for the implementation and also added unit tests for that.
2024-08-15 21:04:31 +02:00
Erik Brakkee
f0dd810541 many small changes
* removed the Async utility
* now using Ping message to webclient for keep alive instaed of actual content
* added remote shell to AgentInfo
* retry of connections to the agent
* better logging for SynchronizeStreams
2024-07-31 19:30:38 +02:00
f382c02b41 restructuring 2024-07-30 19:59:13 +02:00