diff --git a/docs-web/src/test/java/com/sismics/docs/rest/TestRouteModelResource.java b/docs-web/src/test/java/com/sismics/docs/rest/TestRouteModelResource.java index c9937f42..c6fd94eb 100644 --- a/docs-web/src/test/java/com/sismics/docs/rest/TestRouteModelResource.java +++ b/docs-web/src/test/java/com/sismics/docs/rest/TestRouteModelResource.java @@ -77,7 +77,7 @@ public class TestRouteModelResource extends BaseJerseyTest { Assert.assertEquals(0, routeModels.size()); // Add an ACL READ for routeModel1 with admin - json = target().path("/acl").request() + target().path("/acl").request() .cookie(TokenBasedSecurityFilter.COOKIE_NAME, adminToken) .put(Entity.form(new Form() .param("source", routeModelId) diff --git a/docs-web/src/test/java/com/sismics/docs/rest/TestRouteResource.java b/docs-web/src/test/java/com/sismics/docs/rest/TestRouteResource.java index 5eac656b..082a4e69 100644 --- a/docs-web/src/test/java/com/sismics/docs/rest/TestRouteResource.java +++ b/docs-web/src/test/java/com/sismics/docs/rest/TestRouteResource.java @@ -38,6 +38,15 @@ public class TestRouteResource extends BaseJerseyTest { .param("from", "contact@sismicsdocs.com") ), JsonObject.class); + // Add an ACL READ for route1 with admin on the default workflow + target().path("/acl").request() + .cookie(TokenBasedSecurityFilter.COOKIE_NAME, adminToken) + .put(Entity.form(new Form() + .param("source", "default-document-review") + .param("perm", "READ") + .param("target", "route1") + .param("type", "USER")), JsonObject.class); + // Get all route models JsonObject json = target().path("/routemodel") .queryParam("sort_column", "2")