diff --git a/services/commtest/tests/blob/remove.rs b/services/commtest/tests/blob/remove.rs new file mode 100644 --- /dev/null +++ b/services/commtest/tests/blob/remove.rs @@ -0,0 +1,25 @@ +#[path = "./blob_utils.rs"] +mod blob_utils; +#[path = "../lib/tools.rs"] +mod tools; + +use crate::blob_utils::{proto::RemoveRequest, BlobData, BlobServiceClient}; + +use tonic::Request; + +use crate::tools::Error; + +pub async fn run( + client: &mut BlobServiceClient, + blob_data: &BlobData, +) -> Result<(), Error> { + let cloned_holder = blob_data.holder.clone(); + println!("remove {}", cloned_holder); + + client + .remove(Request::new(RemoveRequest { + holder: cloned_holder, + })) + .await?; + Ok(()) +}