mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +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());
|
Assert.assertEquals(0, routeModels.size());
|
||||||
|
|
||||||
// Add an ACL READ for routeModel1 with admin
|
// Add an ACL READ for routeModel1 with admin
|
||||||
json = target().path("/acl").request()
|
target().path("/acl").request()
|
||||||
.cookie(TokenBasedSecurityFilter.COOKIE_NAME, adminToken)
|
.cookie(TokenBasedSecurityFilter.COOKIE_NAME, adminToken)
|
||||||
.put(Entity.form(new Form()
|
.put(Entity.form(new Form()
|
||||||
.param("source", routeModelId)
|
.param("source", routeModelId)
|
||||||
|
@ -38,6 +38,15 @@ public class TestRouteResource extends BaseJerseyTest {
|
|||||||
.param("from", "contact@sismicsdocs.com")
|
.param("from", "contact@sismicsdocs.com")
|
||||||
), JsonObject.class);
|
), 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
|
// Get all route models
|
||||||
JsonObject json = target().path("/routemodel")
|
JsonObject json = target().path("/routemodel")
|
||||||
.queryParam("sort_column", "2")
|
.queryParam("sort_column", "2")
|
||||||
|
Loading…
Reference in New Issue
Block a user