Update constraints on account attributes name
This commit is contained in:
parent
8eb6fc8343
commit
5090c07846
|
@ -33,7 +33,7 @@ public class AccountAttributes {
|
||||||
private int registrationId;
|
private int registrationId;
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
@Length(max = 50, message = "This field must be less than 50 characters")
|
@Length(max = 204, message = "This field must be less than 50 characters")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
|
|
@ -195,7 +195,7 @@ public class DeviceControllerTest {
|
||||||
.target("/v1/devices/5678901")
|
.target("/v1/devices/5678901")
|
||||||
.request()
|
.request()
|
||||||
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_NUMBER, "password1"))
|
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_NUMBER, "password1"))
|
||||||
.put(Entity.entity(new AccountAttributes("keykeykeykey", false, 1234, "this is a really long name that is longer than 80 characters", true, true, null),
|
.put(Entity.entity(new AccountAttributes("keykeykeykey", false, 1234, "this is a really long name that is longer than 80 characters it's so long that it's even longer than 204 characters. that's a lot of characters. we're talking lots and lots and lots of characters. 12345678", true, true, null),
|
||||||
MediaType.APPLICATION_JSON_TYPE));
|
MediaType.APPLICATION_JSON_TYPE));
|
||||||
|
|
||||||
assertEquals(response.getStatus(), 422);
|
assertEquals(response.getStatus(), 422);
|
||||||
|
|
Loading…
Reference in New Issue