You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/01/07 07:34:03 UTC
[james-project] 09/16: JAMES-2993 Integration test for recompute
user JMAP fastView projection
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 59045778c8dbe1e222be4c027768a5b9633e3a21
Author: Tran Tien Duc <dt...@linagora.com>
AuthorDate: Fri Jan 3 10:48:57 2020 +0700
JAMES-2993 Integration test for recompute user JMAP fastView projection
---
.../integration/WebAdminServerIntegrationTest.java | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/WebAdminServerIntegrationTest.java b/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/WebAdminServerIntegrationTest.java
index 4e83ebe..5da8f67 100644
--- a/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/WebAdminServerIntegrationTest.java
+++ b/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/WebAdminServerIntegrationTest.java
@@ -323,6 +323,26 @@ public abstract class WebAdminServerIntegrationTest {
.when()
.get(taskId + "/await")
.then()
- .body("status", is("completed"));
+ .body("status", is("completed"))
+ .body("type", is("RecomputeAllFastViewProjectionItemsTask"));
+ }
+
+ @Test
+ public void jmapUserTasksShouldBeExposed() throws Exception {
+ dataProbe.addUser(USERNAME, "anyPassword");
+
+ String taskId = with()
+ .queryParam("task", "recomputeFastViewProjectionItems")
+ .post("/users/" + USERNAME + "/mailboxes")
+ .jsonPath()
+ .get("taskId");
+
+ given()
+ .basePath(TasksRoutes.BASE)
+ .when()
+ .get(taskId + "/await")
+ .then()
+ .body("status", is("completed"))
+ .body("type", is("RecomputeUserFastViewProjectionItemsTask"));
}
}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org