Adding s3 code
pr CI / Test Suite (pull_request) Failing after 3m27s

This commit is contained in:
2026-08-12 11:07:44 -04:00
parent 5a4ba40064
commit f235073641
+25
View File
@@ -212,6 +212,31 @@ pub mod endpoint {
match lr.upload(&file_path, &data).await { match lr.upload(&file_path, &data).await {
Ok(res) => { Ok(res) => {
println!("Result: {res:?}"); println!("Result: {res:?}");
println!("Downloading file");
match lr.download(&file_path).await {
Ok(res) => {
if res.is_empty() {
println!("This should not be empty");
} else {
println!("Size: {:?}", res.len());
println!("Going to delete file");
match lr.delete(&file_path).await {
Ok(res) => {
println!("Result: {res:?}");
println!("Deleted");
}
Err(err) => {
eprintln!("Error: {err:?}");
}
}
}
}
Err(err) => {
eprintln!("Error: {err:?}");
}
}
} }
Err(err) => match err { Err(err) => match err {
labyrinth::Error::Info(err_str) => { labyrinth::Error::Info(err_str) => {