Gradle Test Run :bootstrap:test

access_denied_for_authenticated_user_remains_403_forbidden()

summary

1

tests

0

failures

0

skipped

0.010s

duration

100%

successful

standard output

2026-05-12T15:59:43.060+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 
2026-05-12T15:59:43.060+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet '' 
2026-05-12T15:59:43.061+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms 
2026-05-12T15:59:43.064+09:00 DEBUG 3742337 --- [    Test worker] [traceId=6c5f72b1b521a32743f6702a1baa3900] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.project.auth.ExceptionHandlingIntegrationTest$TestExceptionController#accessDenied() 
2026-05-12T15:59:43.064+09:00 DEBUG 3742337 --- [    Test worker] [traceId=6c5f72b1b521a32743f6702a1baa3900] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.config.web.SecurityResponseExceptionHandler#handleAccessDeniedException(AccessDeniedException, HttpServletRequest) 
2026-05-12T15:59:43.064+09:00  WARN 3742337 --- [    Test worker] [traceId=6c5f72b1b521a32743f6702a1baa3900] p.a.c.w.SecurityResponseExceptionHandler : Access denied for authenticated principal. exceptionType=AccessDeniedException method=GET requestPath=/test-support/access-denied errorCode=AUTH-002 
2026-05-12T15:59:43.064+09:00  WARN 3742337 --- [    Test worker] [traceId=6c5f72b1b521a32743f6702a1baa3900] c.p.a.c.a.s.SecurityAuditTrailWriter     : Access denied. actorId=us***@example.com method=GET requestPath=/test-support/access-denied 
2026-05-12T15:59:43.065+09:00  WARN 3742337 --- [    Test worker] [traceId=6c5f72b1b521a32743f6702a1baa3900] audit.auth                               : ACCESS_DENIED eventType="ACCESS_DENIED" actorId="us***@example.com" method="GET" requestPath="/test-support/access-denied"
2026-05-12T15:59:43.065+09:00 DEBUG 3742337 --- [    Test worker] [traceId=6c5f72b1b521a32743f6702a1baa3900] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml] 
2026-05-12T15:59:43.065+09:00 DEBUG 3742337 --- [    Test worker] [traceId=6c5f72b1b521a32743f6702a1baa3900] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [ApiResult[success=false, code=AUTH-002, message=접근 권한이 없습니다., data=null, errors=null, traceId=6c5f72 (truncated)...] 
2026-05-12T15:59:43.066+09:00 DEBUG 3742337 --- [    Test worker] [traceId=6c5f72b1b521a32743f6702a1baa3900] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.security.access.AccessDeniedException: simulated denial]