Skip to content

Commit 6a475f7

Browse files
committed
fix(test): use strong password in TestUserResource.testResetPassword
Password reset now enforces complexity rules; update test to use a password that meets the 8+ chars, mixed case, digit requirement.
1 parent 514d26f commit 6a475f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs-web/src/test/java/com/sismics/docs/rest/TestUserResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,14 +483,14 @@ public void testResetPassword() throws Exception {
483483
json = target().path("/user/password_reset").request()
484484
.post(Entity.form(new Form()
485485
.param("key", key)
486-
.param("password", "87654321")), JsonObject.class);
486+
.param("password", "Reset1Pass")), JsonObject.class);
487487
Assertions.assertEquals("ok", json.getString("status"));
488488

489489
// User absent_minded resets its password: expired key
490490
response = target().path("/user/password_reset").request()
491491
.post(Entity.form(new Form()
492492
.param("key", key)
493-
.param("password", "87654321")));
493+
.param("password", "Reset1Pass")));
494494
Assertions.assertEquals(Response.Status.BAD_REQUEST, Response.Status.fromStatusCode(response.getStatus()));
495495
json = response.readEntity(JsonObject.class);
496496
Assertions.assertEquals("KeyNotFound", json.getString("type"));

0 commit comments

Comments
 (0)