1
0
mirror of synced 2026-05-22 21:33:16 +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:
Daeho Kwon
2025-02-04 20:39:29 +09:00
committed by Steve Riesenberg
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();
}