Skip to content

Commit

Permalink
Fix wrong test
Browse files Browse the repository at this point in the history
it was incomplete
  • Loading branch information
rmiccoli committed Feb 4, 2025
1 parent 184e1d5 commit 6e2eaea
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,16 @@ public void testx509AuthNFailsIfDisabledUser() throws Exception {
.andExpect(status().is3xxRedirection())
.andExpect(redirectedUrl("http://localhost/login"));

mvc.perform(post("/login").param("username", "test").param("password", "password"))
.andExpect(status().is3xxRedirection())
.andExpect(redirectedUrl("/login?error=failure"));

resolvedAccount.setActive(true);

mvc.perform(post("/login").param("username", "test").param("password", "password"))
.andExpect(status().is3xxRedirection())
.andExpect(redirectedUrl("/dashboard"));

}

@Test
Expand Down

0 comments on commit 6e2eaea

Please sign in to comment.