Gradle Test Run :bootstrap:test

me_returns_403_when_token_has_no_user_realm_role()

summary

1

tests

0

failures

0

skipped

0.288s

duration

100%

successful

standard output

2026-05-12T15:59:41.103+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] org.hibernate.SQL                        : select uje1_0.id,uje1_0.created_at,uje1_0.email,uje1_0.name,uje1_0.provider,uje1_0.provider_subject,uje1_0.updated_at from auth.users uje1_0 
2026-05-12T15:59:41.134+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 
2026-05-12T15:59:41.135+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet '' 
2026-05-12T15:59:41.136+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms 
2026-05-12T15:59:41.148+09:00  WARN 3742337 --- [    Test worker] [traceId=] c.p.a.c.a.s.SecurityAuditTrailWriter     : Access denied. actorId=sha256:8013ed33ef1dd6f2 method=GET requestPath=/api/v1/auth/me 
2026-05-12T15:59:41.150+09:00  WARN 3742337 --- [    Test worker] [traceId=] audit.auth                               : ACCESS_DENIED eventType="ACCESS_DENIED" actorId="sha256:8013ed33ef1dd6f2" method="GET" requestPath="/api/v1/auth/me"
2026-05-12T15:59:41.151+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.config.web.SecurityResponseExceptionHandler#handleAccessDeniedException(AccessDeniedException, HttpServletRequest) 
2026-05-12T15:59:41.151+09:00  WARN 3742337 --- [    Test worker] [traceId=] p.a.c.w.SecurityResponseExceptionHandler : Access denied for authenticated principal. exceptionType=AuthorizationDeniedException method=GET requestPath=/api/v1/auth/me errorCode=AUTH-002 
2026-05-12T15:59:41.152+09:00  WARN 3742337 --- [    Test worker] [traceId=] c.p.a.c.a.s.SecurityAuditTrailWriter     : Access denied. actorId=sha256:8013ed33ef1dd6f2 method=GET requestPath=/api/v1/auth/me 
2026-05-12T15:59:41.152+09:00  WARN 3742337 --- [    Test worker] [traceId=] audit.auth                               : ACCESS_DENIED eventType="ACCESS_DENIED" actorId="sha256:8013ed33ef1dd6f2" method="GET" requestPath="/api/v1/auth/me"
2026-05-12T15:59:41.159+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml] 
2026-05-12T15:59:41.160+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [ApiResult[success=false, code=AUTH-002, message=접근 권한이 없습니다., data=null, errors=null, traceId=-, tim (truncated)...] 
2026-05-12T15:59:41.162+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.security.authorization.AuthorizationDeniedException: Access Denied]