Gradle Test Run :bootstrap:test

me_returns_401_when_no_authentication()

summary

1

tests

0

failures

0

skipped

0.020s

duration

100%

successful

standard output

2026-05-12T15:59:41.868+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.870+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] org.hibernate.SQL                        : delete from auth.users where id=? 
2026-05-12T15:59:41.871+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 
2026-05-12T15:59:41.871+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet '' 
2026-05-12T15:59:41.872+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms 
2026-05-12T15:59:41.878+09:00  WARN 3742337 --- [    Test worker] [traceId=] c.p.a.c.a.s.SecurityAuditTrailWriter     : Authentication required. actorId=anonymous method=GET requestPath=/api/v1/auth/me 
2026-05-12T15:59:41.878+09:00  WARN 3742337 --- [    Test worker] [traceId=] audit.auth                               : AUTHENTICATION_REQUIRED eventType="AUTHENTICATION_REQUIRED" actorId="anonymous" method="GET" requestPath="/api/v1/auth/me"
2026-05-12T15:59:41.879+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.config.web.SecurityResponseExceptionHandler#handleAuthenticationException(AuthenticationException, HttpServletRequest) 
2026-05-12T15:59:41.879+09:00  WARN 3742337 --- [    Test worker] [traceId=] p.a.c.w.SecurityResponseExceptionHandler : Authentication required. exceptionType=InsufficientAuthenticationException method=GET requestPath=/api/v1/auth/me errorCode=AUTH-001 
2026-05-12T15:59:41.879+09:00  WARN 3742337 --- [    Test worker] [traceId=] c.p.a.c.a.s.SecurityAuditTrailWriter     : Authentication required. actorId=anonymous method=GET requestPath=/api/v1/auth/me 
2026-05-12T15:59:41.879+09:00  WARN 3742337 --- [    Test worker] [traceId=] audit.auth                               : AUTHENTICATION_REQUIRED eventType="AUTHENTICATION_REQUIRED" actorId="anonymous" method="GET" requestPath="/api/v1/auth/me"
2026-05-12T15:59:41.880+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.880+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [ApiResult[success=false, code=AUTH-001, message=인증이 필요합니다., data=null, errors=null, traceId=-, times (truncated)...] 
2026-05-12T15:59:41.880+09:00 DEBUG 3742337 --- [    Test worker] [traceId=] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource]