icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

Add unit-testing for `JsonRpcConnection` and `JsonRpc` utility class

Open jschmidt-icinga opened this issue 1 year ago • 0 comments

With the test fixtures added in #10516 it should now be possible to test the JsonRpcConnection class in a similar manner to HttpServerConnection.

Message sending and decoding should be tested for the JsonRpc utility class first, so the tests for JsonRpcConnection can focus on the connection handling and message dispatching part using a testing ApiFunction.

jschmidt-icinga avatar Jul 28 '25 10:07 jschmidt-icinga