You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2024/03/21 06:41:09 UTC
(james-project) 03/04: JAMES-2586 Fix EmailSetMethod.emailGetShouldReturnUncheckedMailAddressValueWhenDraftEmail test
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch postgresql
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 7118cc5606787d7065b89cc04eb37db4c0fc20e6
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