JMAP for Calendars passing tests

This commit is contained in:
mdecimus
2025-10-16 16:55:56 +02:00
parent 96d2947cdd
commit 81b266797d
31 changed files with 2331 additions and 132 deletions

View File

@@ -12,7 +12,7 @@ use jmap_proto::{
use serde_json::json;
pub async fn test(params: &mut JMAPTest) {
println!("Running file storage ACL tests...");
println!("Running File Storage ACL tests...");
let john = params.account("jdoe@example.com");
let jane = params.account("jane.smith@example.com");
let john_id = john.id_string().to_string();
@@ -25,6 +25,7 @@ pub async fn test(params: &mut JMAPTest) {
[json!({
"name": "Test #1",
})],
Vec::<(&str, &str)>::new(),
)
.await;
let john_folder_id = response.created(0).id().to_string();
@@ -313,6 +314,7 @@ pub async fn test(params: &mut JMAPTest) {
[json!({
"name": "A new shared folder",
})],
Vec::<(&str, &str)>::new()
)
.await
.not_created(0)

View File

@@ -10,7 +10,7 @@ use jmap_proto::{object::file_node::FileNodeProperty, request::method::MethodObj
use serde_json::json;
pub async fn test(params: &mut JMAPTest) {
println!("Running file storage tests...");
println!("Running File Storage tests...");
let account = params.account("jdoe@example.com");
// Obtain change id
@@ -42,6 +42,7 @@ pub async fn test(params: &mut JMAPTest) {
"parentId": "#i1",
}),
],
Vec::<(&str, &str)>::new(),
)
.await;
let root_folder_id = response.created(0).id().to_string();
@@ -190,6 +191,7 @@ pub async fn test(params: &mut JMAPTest) {
"name": "..",
}),
],
Vec::<(&str, &str)>::new(),
)
.await;
assert_eq!(