This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new 743c6983b7 Fix 
mailboxSetShouldCreateChildMailboxWhenSharedParentMailboxWithCreateRight in 
MailboxSetMethodContract
743c6983b7 is described below

commit 743c6983b734b6d18f00ce1f01541a1a24e6fee9
Author: hung phan <hp...@linagora.com>
AuthorDate: Tue Nov 12 16:13:41 2024 +0700

    Fix 
mailboxSetShouldCreateChildMailboxWhenSharedParentMailboxWithCreateRight in 
MailboxSetMethodContract
---
 .../james/jmap/rfc8621/contract/MailboxSetMethodContract.scala      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/MailboxSetMethodContract.scala
 
b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/MailboxSetMethodContract.scala
index 5298654526..ce234f8c88 100644
--- 
a/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/MailboxSetMethodContract.scala
+++ 
b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/MailboxSetMethodContract.scala
@@ -2215,6 +2215,10 @@ trait MailboxSetMethodContract {
       .body
       .asString
 
+    val childMailboxId: String = server.getProbe(classOf[MailboxProbeImpl])
+      .getMailboxId("#private", ANDRE.asString(), "mailbox.childMailbox")
+      .serialize
+
     assertThatJson(response)
       .whenIgnoringPaths("methodResponses[0][1].newState", 
"methodResponses[0][1].oldState")
       .isEqualTo(
@@ -2226,7 +2230,7 @@ trait MailboxSetMethodContract {
          |      "accountId": 
"29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
          |      "created":{
          |        "C42":{
-         |          "id":"3",
+         |          "id":"${childMailboxId}",
          |          "isSubscribed":true,
          |          "myRights":{
          |            "mayAddItems":true,


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to