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 <[email protected]> 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": "[email protected]" | } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
