mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Use a static Mockito server instead of creating multiple on-the-fly during testing. Add the `mockito_server_available` test to quickly verify that the mockito server could be constructed. Relocate the verifier API test to the test folder as it tests the public API. Also, make the Debug impl for CertVerifier public. The test relocation requires this. Before, there could be a test local implementation of the Debug impl as it was in the same crate. While at it, get rid of the lazy_static crate in favor of the once_cell crate. As the new std lib implementation is very near to the one from once cell. The project will switch to the std impl when v1.70 is available in all supported distros. See: https://doc.rust-lang.org/std/sync/struct.OnceLock.html Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>