cosmian_kms_cli 5.20.0

Command Line Interface used to manage the KMS server If any assistance is needed, please either visit the Cosmian technical documentation at https://docs.cosmian.com or contact the Cosmian support team on Discord https://discord.com/invite/7kPMNtHpnz
Documentation
use std::path::PathBuf;

use test_kms_server::start_default_test_kms_server;

use crate::{
    actions::kms::cover_crypt::keys::create_key_pair::CreateMasterKeyPairAction,
    error::result::KmsCliResult,
};

#[tokio::test]
pub(crate) async fn test_create_master_key_pair() -> KmsCliResult<()> {
    let ctx = start_default_test_kms_server().await;
    Box::pin(
        CreateMasterKeyPairAction {
            specification: PathBuf::from("../../test_data/access_structure_specifications.json"),
            tags: vec![],
            sensitive: false,
            wrapping_key_id: None,
        }
        .run(ctx.get_owner_client()),
    )
    .await?;

    Ok(())
}