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