1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-17 11:41:41 +00:00

#41: Batch to rebuild quota storage + UI: show and edit quota

This commit is contained in:
jendib
2015-11-29 23:14:33 +01:00
parent 0fab0e4fc0
commit aa97253ec7
6 changed files with 86 additions and 3 deletions

View File

@@ -53,6 +53,12 @@ public class TestAppResource extends BaseJerseyTest {
.cookie(TokenBasedSecurityFilter.COOKIE_NAME, adminAuthenticationToken)
.post(Entity.form(new Form()));
Assert.assertEquals(Status.OK, Status.fromStatusCode(response.getStatus()));
// Recompute quota
response = target().path("/app/batch/recompute_quota").request()
.cookie(TokenBasedSecurityFilter.COOKIE_NAME, adminAuthenticationToken)
.post(Entity.form(new Form()));
Assert.assertEquals(Status.OK, Status.fromStatusCode(response.getStatus()));
}
/**