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 0d576d8123 JAMES-2586 Fix EmailSetMethod.emailGetShouldReturnUncheckedMailAddressValueWhenDraftEmail test
0d576d8123 is described below
commit 0d576d8123883612d8d419c8c8140e9902b42da8
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Thu Mar 21 11:02:13 2024 +0700
JAMES-2586 Fix EmailSetMethod.emailGetShouldReturnUncheckedMailAddressValueWhenDraftEmail test
---
.../james/jmap/rfc8621/contract/EmailSetMethodContract.scala | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
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/EmailSetMethodContract.scala b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/EmailSetMethodContract.scala
index 248429a36c..64133f42a4 100644
--- a/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/EmailSetMethodContract.scala
+++ b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/EmailSetMethodContract.scala
@@ -7677,14 +7677,22 @@ trait EmailSetMethodContract {
.body
.asString
+ val messageId = Json.parse(response)
+ .\("methodResponses")
+ .\(0).\(1)
+ .\("created")
+ .\("e1526")
+ .\("id")
+ .get.asInstanceOf[JsString].value
+
assertThatJson(response)
.inPath("methodResponses[1][1].list")
- .isEqualTo("""[{
+ .isEqualTo(s"""[{
| "to": [{
| "name": "name1",
| "email": "invalid1"
| }],
- | "id": "1",
+ | "id": "$messageId",
| "from": [{
| "email": "bob@domain.tld"
| }
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org