NetHSM containerized tests
Containerized testing environments for NetHSM related projects.
This project contains types which start virtual NetHSM instances using Podman.
Documentation
- https://signstar.archlinux.page/rustdoc/nethsm_tests/ for development version of the crate
- https://docs.rs/nethsm_tests/latest/nethsm_tests/ for released versions of the crate
Example
The following integration test starts a NetHSM container with users to retrieve several random bytes:
use Credentials;
use NetHsm;
use Passphrase;
use nethsm_with_users;
use NetHsmImage;
use DEFAULT_OPERATOR_USER_ID;
use DEFAULT_OPERATOR_USER_PASSPHRASE;
use Container;
use TestResult;
pub static LENGTH: u32 = 32;
async
Contributing
Please refer to the contributing guidelines to learn how to contribute to this project.
License
This project may be used under the terms of the Apache-2.0 or MIT license.
Changes to this project - unless stated otherwise - automatically fall under the terms of both of the aforementioned licenses.