mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-04-25 00:25:01 +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()
|
.expectStatus()
|
||||||
.isEqualTo(HttpStatus.FORBIDDEN)
|
.isEqualTo(HttpStatus.FORBIDDEN)
|
||||||
.expectBody()
|
.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();
|
this.client.mutateWith(SecurityMockServerConfigurers.csrf()).post().exchange().expectStatus().isOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user