Migration implementation (part 1)

This commit is contained in:
mdecimus
2025-12-10 19:13:04 +01:00
parent efd1d86ff3
commit f1fe0345ef
86 changed files with 2553 additions and 356 deletions

View File

@@ -43,10 +43,12 @@ pub async fn test(params: &mut JMAPTest) {
EncryptionMethod::PGP => EncryptionType::PGP {
algo,
certs: certs.clone(),
allow_spam_training: true,
},
EncryptionMethod::SMIME => EncryptionType::SMIME {
algo,
certs: certs.clone(),
allow_spam_training: true,
},
};

View File

@@ -164,7 +164,7 @@ async fn strategies() {
env_id: None,
priority: 0,
size: 978,
quota_keys: vec![],
quota_keys: Default::default(),
};
assert_eq!(

View File

@@ -86,7 +86,7 @@ async fn generate_dsn() {
env_id: None,
priority: 0,
blob_hash: BlobHash::generate(dsn_original.as_bytes()),
quota_keys: vec![],
quota_keys: Default::default(),
received_from_ip: IpAddr::V4(Ipv4Addr::LOCALHOST),
received_via_port: 0,
},

View File

@@ -175,7 +175,7 @@ pub fn new_message(queue_id: u64) -> MessageWrapper {
flags: 0,
env_id: None,
priority: 0,
quota_keys: vec![],
quota_keys: Default::default(),
blob_hash: Default::default(),
received_from_ip: IpAddr::V4(Ipv4Addr::LOCALHOST),
received_via_port: 0,