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:10 UTC
(james-project) 04/04: JAMES-3534 Update IdentityGetContract - fix failing when running with Distributed 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 bb2f9079c5d5f71709f320d958e950c6595e4934
Author: vttran <vt...@linagora.com>
AuthorDate: Thu Mar 21 11:43:47 2024 +0700
JAMES-3534 Update IdentityGetContract - fix failing when running with Distributed test
---
.../org/apache/james/jmap/rfc8621/distributed/DistributedBase.java | 3 ++-
.../apache/james/jmap/rfc8621/contract/IdentityGetContract.scala | 7 ++-----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedBase.java b/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedBase.java
index 03a7df3053..dfb4902d1d 100644
--- a/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedBase.java
+++ b/server/protocols/jmap-rfc-8621-integration-tests/distributed-jmap-rfc-8621-integration-tests/src/test/java/org/apache/james/jmap/rfc8621/distributed/DistributedBase.java
@@ -26,6 +26,7 @@ import org.apache.james.DockerOpenSearchExtension;
import org.apache.james.JamesServerBuilder;
import org.apache.james.JamesServerExtension;
import org.apache.james.SearchConfiguration;
+import org.apache.james.jmap.rfc8621.contract.IdentityProbeModule;
import org.apache.james.jmap.rfc8621.contract.probe.DelegationProbeModule;
import org.apache.james.modules.AwsS3BlobStoreExtension;
import org.apache.james.modules.RabbitMQExtension;
@@ -52,6 +53,6 @@ public class DistributedBase {
.extension(new RabbitMQExtension())
.extension(new AwsS3BlobStoreExtension())
.server(configuration -> CassandraRabbitMQJamesServerMain.createServer(configuration)
- .overrideWith(new TestJMAPServerModule(), new DelegationProbeModule()))
+ .overrideWith(new TestJMAPServerModule(), new DelegationProbeModule(), new IdentityProbeModule()))
.build();
}
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/IdentityGetContract.scala b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/IdentityGetContract.scala
index 8e1341a6c5..3ae4e521a6 100644
--- a/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/IdentityGetContract.scala
+++ b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/IdentityGetContract.scala
@@ -686,7 +686,8 @@ trait IdentityGetContract {
| "Identity/get",
| {
| "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
- | "ids": [ "$serverSetIdentityId" ]
+ | "ids": [ "$serverSetIdentityId" ],
+ | "properties": ["id", "mayDelete"]
| },
| "c1"]]
|}""".stripMargin)
@@ -703,11 +704,7 @@ trait IdentityGetContract {
.inPath("methodResponses[0][1].list[0]")
.isEqualTo(
s"""{
- | "name": "",
- | "email": "bob@domain.tld",
- | "htmlSignature": "html signature",
| "id": "$serverSetIdentityId",
- | "textSignature": "",
| "mayDelete": false
|}""".stripMargin)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org