Add unit-testing for `JsonRpcConnection` and `JsonRpc` utility class
Open
@jschmidt-icinga is already working on this.
Since Aug 28, 2025.
area/tests
core/quality
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 616
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.