Bump max sticker count to 201
This commit is contained in:
parent
c8979940a8
commit
886db1a2c3
|
@ -41,7 +41,7 @@ public class StickerController {
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@Path("/pack/form/{count}")
|
@Path("/pack/form/{count}")
|
||||||
public StickerPackFormUploadAttributes getStickersForm(@Auth Account account,
|
public StickerPackFormUploadAttributes getStickersForm(@Auth Account account,
|
||||||
@PathParam("count") @Min(1) @Max(50) int stickerCount)
|
@PathParam("count") @Min(1) @Max(201) int stickerCount)
|
||||||
throws RateLimitExceededException
|
throws RateLimitExceededException
|
||||||
{
|
{
|
||||||
rateLimiters.getStickerPackLimiter().validate(account.getNumber());
|
rateLimiters.getStickerPackLimiter().validate(account.getNumber());
|
||||||
|
|
|
@ -84,7 +84,7 @@ public class StickerControllerTest {
|
||||||
@Test
|
@Test
|
||||||
public void testCreateTooLargePack() throws Exception {
|
public void testCreateTooLargePack() throws Exception {
|
||||||
Response response = resources.getJerseyTest()
|
Response response = resources.getJerseyTest()
|
||||||
.target("/v1/sticker/pack/form/51")
|
.target("/v1/sticker/pack/form/202")
|
||||||
.request()
|
.request()
|
||||||
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_NUMBER, AuthHelper.VALID_PASSWORD))
|
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_NUMBER, AuthHelper.VALID_PASSWORD))
|
||||||
.get();
|
.get();
|
||||||
|
|
Loading…
Reference in New Issue