ACL storage optimization
This commit is contained in:
@@ -128,7 +128,7 @@ pub async fn test(params: &mut JMAPTest) {
|
||||
);
|
||||
assert!(client.session().account(&account_id).unwrap().is_personal());
|
||||
|
||||
// Uploads up to 50000000 bytes should be allowed
|
||||
// Uploads up to 5000000 bytes should be allowed
|
||||
assert_eq!(
|
||||
client
|
||||
.upload(None, vec![b'A'; 5000000], None)
|
||||
|
||||
@@ -190,7 +190,7 @@ max-objects = 100000
|
||||
max-concurrent = 8
|
||||
|
||||
[jmap.protocol.upload]
|
||||
max-size = 50000000
|
||||
max-size = 5000000
|
||||
max-concurrent = 4
|
||||
ttl = "1m"
|
||||
|
||||
@@ -289,30 +289,30 @@ pub async fn jmap_tests() {
|
||||
//assert_is_empty(params.server.clone()).await;
|
||||
|
||||
let coco = 1;
|
||||
//email_query::test(&mut params, delete).await;
|
||||
/*email_get::test(&mut params).await;
|
||||
/*email_query::test(&mut params, delete).await;
|
||||
email_get::test(&mut params).await;
|
||||
email_set::test(&mut params).await;
|
||||
email_parse::test(&mut params).await;
|
||||
email_search_snippet::test(&mut params).await;
|
||||
email_changes::test(&mut params).await;
|
||||
email_query_changes::test(&mut params).await;
|
||||
email_copy::test(&mut params).await;
|
||||
thread_get::test(&mut params).await;*/
|
||||
//thread_merge::test(&mut params).await;
|
||||
//mailbox::test(&mut params).await;
|
||||
//delivery::test(&mut params).await;
|
||||
/*auth_acl::test(&mut params).await;
|
||||
thread_get::test(&mut params).await;
|
||||
thread_merge::test(&mut params).await;
|
||||
mailbox::test(&mut params).await;
|
||||
delivery::test(&mut params).await;
|
||||
auth_acl::test(&mut params).await;*/
|
||||
auth_limits::test(&mut params).await;
|
||||
auth_oauth::test(&mut params).await;
|
||||
event_source::test(&mut params).await;
|
||||
push_subscription::test(&mut params).await;
|
||||
sieve_script::test(&mut params).await;
|
||||
vacation_response::test(&mut params).await;*/
|
||||
vacation_response::test(&mut params).await;
|
||||
email_submission::test(&mut params).await;
|
||||
/*websocket::test(&mut params).await;
|
||||
websocket::test(&mut params).await;
|
||||
quota::test(&mut params).await;
|
||||
crypto::test(&mut params).await;
|
||||
blob::test(&mut params).await;*/
|
||||
blob::test(&mut params).await;
|
||||
|
||||
if delete {
|
||||
params.temp_dir.delete();
|
||||
|
||||
@@ -29,7 +29,7 @@ use crate::{
|
||||
};
|
||||
use jmap::{email::ingest::IngestEmail, IngestError};
|
||||
use jmap_client::{email, mailbox::Role};
|
||||
use jmap_proto::types::{collection::Collection, id::Id, property::Property};
|
||||
use jmap_proto::types::{collection::Collection, id::Id};
|
||||
use mail_parser::{mailbox::mbox::MessageIterator, MessageParser};
|
||||
use store::{
|
||||
ahash::{AHashMap, AHashSet},
|
||||
@@ -236,6 +236,12 @@ async fn test_multi_thread(params: &mut JMAPTest) {
|
||||
.await
|
||||
.unwrap()
|
||||
.take_id();
|
||||
params
|
||||
.client
|
||||
.set_default_account_id(Id::new(0u64).to_string())
|
||||
.mailbox_create("Other mailbox", None::<String>, Role::None)
|
||||
.await
|
||||
.unwrap();
|
||||
let mailbox_id = Id::from_bytes(mailbox_id_str.as_bytes())
|
||||
.unwrap()
|
||||
.document_id();
|
||||
@@ -294,7 +300,7 @@ async fn test_multi_thread(params: &mut JMAPTest) {
|
||||
messages as u64,
|
||||
params
|
||||
.server
|
||||
.get_tag(0, Collection::Email, Property::MailboxIds, mailbox_id,)
|
||||
.get_document_ids(0, Collection::Email)
|
||||
.await
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user