Gradle Test Run :bootstrap:test
authenticated_user_without_required_role_returns_403_json_without_exposing_principal(CapturedOutput)
summary
|
100%
successful |
standard output
2026-05-12T15:59:42.810+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 2026-05-12T15:59:42.810+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 2026-05-12T15:59:42.811+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 2026-05-12T15:59:42.820+09:00 DEBUG 3742337 --- [ Test worker] [traceId=c756b63ddb4adb1315050979b2ef7847] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.project.auth.ExceptionHandlingIntegrationTest$TestExceptionController#adminOnly() 2026-05-12T15:59:42.821+09:00 DEBUG 3742337 --- [ Test worker] [traceId=c756b63ddb4adb1315050979b2ef7847] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.config.web.SecurityResponseExceptionHandler#handleAccessDeniedException(AccessDeniedException, HttpServletRequest) 2026-05-12T15:59:42.821+09:00 WARN 3742337 --- [ Test worker] [traceId=c756b63ddb4adb1315050979b2ef7847] p.a.c.w.SecurityResponseExceptionHandler : Access denied for authenticated principal. exceptionType=AuthorizationDeniedException method=GET requestPath=/test-support/admin errorCode=AUTH-002 2026-05-12T15:59:42.822+09:00 WARN 3742337 --- [ Test worker] [traceId=c756b63ddb4adb1315050979b2ef7847] c.p.a.c.a.s.SecurityAuditTrailWriter : Access denied. actorId=al***@example.com method=GET requestPath=/test-support/admin 2026-05-12T15:59:42.822+09:00 WARN 3742337 --- [ Test worker] [traceId=c756b63ddb4adb1315050979b2ef7847] audit.auth : ACCESS_DENIED eventType="ACCESS_DENIED" actorId="al***@example.com" method="GET" requestPath="/test-support/admin" 2026-05-12T15:59:42.825+09:00 DEBUG 3742337 --- [ Test worker] [traceId=c756b63ddb4adb1315050979b2ef7847] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml] 2026-05-12T15:59:42.825+09:00 DEBUG 3742337 --- [ Test worker] [traceId=c756b63ddb4adb1315050979b2ef7847] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [ApiResult[success=false, code=AUTH-002, message=접근 권한이 없습니다., data=null, errors=null, traceId=c756b6 (truncated)...] 2026-05-12T15:59:42.828+09:00 DEBUG 3742337 --- [ Test worker] [traceId=c756b63ddb4adb1315050979b2ef7847] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.security.authorization.AuthorizationDeniedException: Access Denied]