tests for redisclient

This commit is contained in:
Per Stark
2024-10-02 11:17:42 +02:00
parent 8e7e762130
commit 7d13c06a51
8 changed files with 446 additions and 214 deletions
+3 -2
View File
@@ -13,10 +13,11 @@ use thiserror::Error;
use tracing::info;
use uuid::Uuid;
use crate::redis::client::RedisClient;
use crate::redis::client::{RedisClient, RedisClientTrait};
/// Represents metadata and storage information for a file.
#[derive(Debug, Clone, Deserialize, Serialize)]
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
pub struct FileInfo {
pub uuid: Uuid,
pub sha256: String,
+2
View File
@@ -7,6 +7,7 @@ use crate::redis::client::RedisClient;
use super::{file_info::FileInfo, ingress_object::IngressObject };
/// Struct defining the expected body when ingressing content.
#[derive(Serialize, Deserialize, Debug)]
pub struct IngressInput {
@@ -107,3 +108,4 @@ pub async fn create_ingress_objects(
Ok(object_list)
}