Skip to content
Snippets Groups Projects
Commit e749cd7a authored by Alberto Miranda's avatar Alberto Miranda :hotsprings:
Browse files

Merge branch 'amanzano/44-add-tests-to-verify-rpc-arguments-for-adm_register_job' into 'main'

Resolve "Add tests to verify RPC arguments."

This MR implements tests to validate that RPC information is correctly transferred between clients and servers. To do that, we provide a `ci/check_rpcs.py` script that requires client and server logfiles with the requests to validate, plus a RPC name for the RPC of interest. The script parses the logfiles and verifies that their contents match.

In order to implement this, we allow the logging framework to be configured using environment variables, so that it is possible to easily modify the logging output file in tests. We also augment RPC replies so that they include the operation id (`op_id`) assigned by the server, so that it is possible to match client information to server information.

We also define appropriate CMake tests that run the validation script for each RPC once all the RPC tests have finished.

Closes #44 #23

See merge request !31
parents 8dddf7fc 33280a87
No related branches found
No related tags found
1 merge request!31Resolve "Add tests to verify RPC arguments."
Pipeline #3173 passed
Showing
with 925 additions and 59 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment