mirror of
https://github.com/sismics/docs.git
synced 2024-12-22 11:23:48 +01:00
#252: fix route test
This commit is contained in:
parent
feb3d15968
commit
2134f116da
@ -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)
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user