This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit b20ab2c4a2b4be11997f545865ecf149c44ca7f4 Author: Lan <dlkh...@linagora.com> AuthorDate: Fri Mar 6 17:46:10 2020 +0700 JAMES-3072 MailboxesExportTask webadmin integration test --- .../integration/WebAdminServerIntegrationTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 547aa2a..b02ee24 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 @@ -334,4 +334,23 @@ public abstract class WebAdminServerIntegrationTest { .body("status", is("completed")) .body("type", is("RecomputeUserFastViewProjectionItemsTask")); } + + @Test + void mailboxesExportTasksShouldBeExposed() throws Exception { + dataProbe.addUser(USERNAME, "anyPassword"); + + String taskId = with() + .queryParam("task", "export") + .post("/users/" + USERNAME + "/mailboxes") + .jsonPath() + .get("taskId"); + + given() + .basePath(TasksRoutes.BASE) + .when() + .get(taskId + "/await") + .then() + .body("status", is("completed")) + .body("type", is("MailboxesExportTask")); + } } \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org