Skip to content

Commit

Permalink
JAMES-1961 Add global users routes for WebAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
tlcong authored and chibenwa committed Mar 21, 2017
1 parent 3b0bc0b commit 77b36a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -43,6 +43,7 @@
import org.apache.james.webadmin.authentication.JwtFilter;
import org.apache.james.webadmin.authentication.NoAuthenticationFilter;
import org.apache.james.webadmin.routes.DomainRoutes;
import org.apache.james.webadmin.routes.GlobalQuotaRoutes;
import org.apache.james.webadmin.routes.UserMailboxesRoutes;
import org.apache.james.webadmin.routes.UserRoutes;
import org.apache.james.webadmin.utils.JsonTransformer;
Expand Down Expand Up @@ -80,6 +81,7 @@ protected void configure() {
routesMultibinder.addBinding().to(DomainRoutes.class);
routesMultibinder.addBinding().to(UserRoutes.class);
routesMultibinder.addBinding().to(UserMailboxesRoutes.class);
routesMultibinder.addBinding().to(GlobalQuotaRoutes.class);

Multibinder.newSetBinder(binder(), ConfigurationPerformer.class).addBinding().to(WebAdminServerModuleConfigurationPerformer.class);
Multibinder.newSetBinder(binder(), GuiceProbe.class).addBinding().to(WebAdminGuiceProbe.class);
Expand Down
Expand Up @@ -247,7 +247,7 @@ public void putQuotaShouldUpdateBothQuota() throws Exception {
}

@Test
public void putQuotaShouldBaAbleToRemoveBothQuota() throws Exception {
public void putQuotaShouldBeAbleToRemoveBothQuota() throws Exception {
given()
.body("{\"count\":-1,\"size\":-1}")
.put(GlobalQuotaRoutes.QUOTA_ENDPOINT)
Expand Down

0 comments on commit 77b36a7

Please sign in to comment.