fixed test

This commit is contained in:
dashevchenko 2023-12-06 11:13:21 +02:00
parent 8ba9c7d944
commit bdf8c6d3db

View File

@ -139,7 +139,7 @@ public class AuthControllerTest extends AbstractControllerTest {
//try to login with user password that is not valid after security settings was updated
doPost("/api/auth/login", new LoginRequest(TENANT_ADMIN_EMAIL, newPassword))
.andExpect(status().isUnauthorized())
.andExpect(jsonPath("$.message", is("Password does not pass validation. Please try again or reset password to valid one.")));
.andExpect(jsonPath("$.message", is("The entered password violates our policies. If this is your real password, please reset it.")));
}
@Test