3d46ee6c10
agentlistener tested.
2024-08-22 00:04:49 +02:00
a8873f2f2f
test for initialization failure when connection is closed.
2024-08-21 23:52:06 +02:00
5d65f3bbd4
protocol version test implemented between agent and server (and found
...
that it did not work)
2024-08-21 23:48:37 +02:00
53534af27c
test for ListenForAgentEvents implemented.
2024-08-21 17:48:47 +02:00
ce45c59d33
added initialization test
2024-08-21 17:11:32 +02:00
61e95ab2eb
minor cleanup
2024-08-21 16:59:33 +02:00
e0b6e644b6
added a few tests for inmemoryconnection.
2024-08-21 16:58:15 +02:00
ab5fdf4f7e
renamed ChannelReadWriter to ChannelReadWriteCloser.
2024-08-21 16:34:16 +02:00
dca0772dc3
fixed issue with ChannelReadWriter for unbuffered channels.
...
Was a concurrency issue int he Write method that retained the
slice p that was passed in, making concurrency issues much more likely
with unbuffered channels.
2024-08-21 16:32:37 +02:00
6dc8f67570
bidirectional communication now tested.
2024-08-20 12:20:12 +02:00
11c894e906
tested connections through the session.
2024-08-20 12:16:02 +02:00
c25b4b4df9
now using testsuite also for linkedmap
2024-08-20 12:00:23 +02:00
d5c0206b9c
basic gobchannel tests now done.
2024-08-20 11:47:36 +02:00
ed04ac035a
discovered net.Pipe for testing tcp connnections which makes the
...
previously developed ChannelReadWriter and InmemoryConnection obsolete.
2024-08-20 11:28:09 +02:00
c55c4aa365
fix for non-deterministic test.
2024-08-20 09:46:04 +02:00
f88def71ec
channelreadwriter test done.
2024-08-20 09:39:22 +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
e9383caa01
more symmetry. SetupHeartBeat froma agent to server now done in separate
...
call.
2024-08-19 19:46:39 +02:00
91ea4632a3
now using a testsuite for the throttler tests.
2024-08-19 19:42:51 +02:00
a62a513105
go conventions: context should be first argument.
2024-08-19 19:22:44 +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
57c77e7d07
initial state is now sent again when the websocket connection is
...
established.
Also throttling based on user input. When browser sends multiple
messages per second the user will still only get one notification per
second at most.
2024-08-18 11:44:16 +02:00
9a5aaf56eb
consistent casing in the titles (all lower case)
2024-08-18 01:19:46 +02:00
a3fe2fbcb6
hostkey is now sent from the server to the agent so that at a later
...
stage we can make the hostkey conrfigurable at the server level instead
of using a fixed hardcoded key.
2024-08-17 21:35:29 +02:00
b5a9ecf5e8
more docs.
2024-08-17 10:41:22 +02:00
2c42f89547
moved all ui stuff to the ui package.
...
The structure of converge server is now much more clear in the package
// structure below pkg/server.
2024-08-17 10:37:20 +02:00
2b9821f967
renamed templates package to ui
2024-08-17 10:22:03 +02:00
a12416cd21
moved prometheus to its own package.
2024-08-17 10:17:47 +02:00
7ab213c34e
removed unused field LocalShells of UsageInputs.
2024-08-17 10:14:22 +02:00
0077bdfbc5
introduced DownloadCommand and Shell types to improve type safety
2024-08-17 10:12:09 +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
fed2aaeaf9
throttling implemented for events.
2024-08-16 14:59:18 +02:00
9634cd29f2
about page vvarious fixes, typo's etc.
2024-08-16 08:33:32 +02:00
b48376e1c8
formatting
2024-08-16 00:41:04 +02:00
99fe461c77
typo
2024-08-16 00:30:28 +02:00
e36aaeea36
Small comment updates.
2024-08-16 00:27:42 +02:00
b6962e3cb6
Server side sorting for the websessions page. No longer using LinkedMap as a result.
2024-08-16 00:25:17 +02:00
deba6c7e91
Now using a map of ClientId to clientConnection which is more efficient for deleting clients.
2024-08-15 22:16:20 +02:00
cdfe7c2a47
Separated out the metadata about the agents and clients from the agentConnection and clientConnection objects. Now, the state does not need to be copied anymore when sending notifications.
...
The matchmaker uses copy on write every time a new agent or client connects or disconnects.
2024-08-15 22:08:24 +02:00
56ad9fbf03
concurrency for the expiry time
2024-08-15 21:25:30 +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
98f6b414de
introdcution of typesafe ids.
2024-08-15 18:32:59 +02:00
1a2a3b6ac5
Now using a more efficient data structure in the prometheus code for saving the last state to improve efficiency and minimize copying even more.
2024-08-14 23:38:45 +02:00
9a1b78ee63
Eliminating copying of objects in the prometheus integration.
2024-08-14 20:42:14 +02:00
bf6667aa81
Now optionally enabling thye pprof endpoint with the --pprof flag.
2024-08-14 20:41:49 +02:00