mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-28 10:58:33 +00:00
Replace dynamic error message with static "Access Denied"
Closes gh-16514 Signed-off-by: Daeho Kwon <trewq231@naver.com>
This commit is contained in:
parent
24b7287d55
commit
90dd31cae5
@ -136,7 +136,7 @@ public class SecurityMockServerConfigurersTests extends AbstractMockServerConfig
|
||||
.expectStatus()
|
||||
.isEqualTo(HttpStatus.FORBIDDEN)
|
||||
.expectBody()
|
||||
.consumeWith((b) -> assertThat(new String(b.getResponseBody())).contains("CSRF"));
|
||||
.consumeWith((b) -> assertThat(new String(b.getResponseBody())).contains("Access Denied"));
|
||||
this.client.mutateWith(SecurityMockServerConfigurers.csrf()).post().exchange().expectStatus().isOk();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user