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 2019/03/22 03:06:58 UTC

[james-project] 01/06: JAMES-2666 binding event dead letters routes with guice

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 257105d2cdb8151f96aefdbb10cffd94661025e1
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Thu Mar 7 14:42:38 2019 +0700

    JAMES-2666 binding event dead letters routes with guice
---
 .../webadmin/integration/UnauthorizedEndpointsTest.java    | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/server/protocols/webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/UnauthorizedEndpointsTest.java b/server/protocols/webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/UnauthorizedEndpointsTest.java
index 5048287..7d22960 100644
--- a/server/protocols/webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/UnauthorizedEndpointsTest.java
+++ b/server/protocols/webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/UnauthorizedEndpointsTest.java
@@ -31,6 +31,7 @@ import org.apache.james.webadmin.routes.DLPConfigurationRoutes;
 import org.apache.james.webadmin.routes.DomainMappingsRoutes;
 import org.apache.james.webadmin.routes.DomainQuotaRoutes;
 import org.apache.james.webadmin.routes.DomainsRoutes;
+import org.apache.james.webadmin.routes.EventDeadLettersRoutes;
 import org.apache.james.webadmin.routes.ForwardRoutes;
 import org.apache.james.webadmin.routes.GlobalQuotaRoutes;
 import org.apache.james.webadmin.routes.GroupsRoutes;
@@ -97,7 +98,10 @@ class UnauthorizedEndpointsTest {
             SieveQuotaRoutes.ROOT_PATH + "/users/user@james.org",
             TasksRoutes.BASE,
             TasksRoutes.BASE + "/taskId",
-            TasksRoutes.BASE + "/taskId/await"
+            TasksRoutes.BASE + "/taskId/await",
+            EventDeadLettersRoutes.BASE_PATH + "/groups",
+            EventDeadLettersRoutes.BASE_PATH + "/groups/group@james.org",
+            EventDeadLettersRoutes.BASE_PATH + "/groups/group@james.org/1"
     })
     void checkUrlProtectionOnGet(String url) {
         when()
@@ -111,7 +115,10 @@ class UnauthorizedEndpointsTest {
             CassandraMigrationRoutes.VERSION_BASE + "/upgrade",
             CassandraMigrationRoutes.VERSION_BASE + "/upgrade/latest",
             DeletedMessagesVaultRoutes.ROOT_PATH + "/joe@perdu.com",
-            CassandraMappingsRoutes.ROOT_PATH
+            CassandraMappingsRoutes.ROOT_PATH,
+            EventDeadLettersRoutes.BASE_PATH,
+            EventDeadLettersRoutes.BASE_PATH + "/groups/group@james.org",
+            EventDeadLettersRoutes.BASE_PATH + "/groups/group@james.org/1"
     })
     void checkUrlProtectionOnPost(String url) {
         when()
@@ -174,7 +181,8 @@ class UnauthorizedEndpointsTest {
             MailRepositoriesRoutes.MAIL_REPOSITORIES + "/myRepo/mails",
             SieveQuotaRoutes.DEFAULT_QUOTA_PATH,
             SieveQuotaRoutes.ROOT_PATH + "/users/user@james.org",
-            TasksRoutes.BASE + "/taskId"
+            TasksRoutes.BASE + "/taskId",
+            EventDeadLettersRoutes.BASE_PATH + "/groups/group@james.org/1"
     })
     void checkUrlProtectionOnDelete(String url) {
         when()


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org