vaultrs-test
A test suite for testing against Hashicorp Vault servers.
Installation
Add vaultrs-test as a developemnt depdendency to your cargo.toml:
[dev-dependencies]
vaultrs-test = "0.1.0"
Usage
use ;
use ;
// Configures a container to run Vault server v1.8.2
let config = default;
// Creates a test instance to run the container in
let instance = config.to_instance;
// Runs the test instance, passing in details about the container environment
instance.run
// Container is cleaned up at this point
Testing
Run tests with cargo:
cargo test