Gradle Test Run :bootstrap:test
unauthenticated_request_returns_401_json_with_trace_metadata()
summary
|
100%
successful |
standard output
2026-05-12T15:59:43.071+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 2026-05-12T15:59:43.071+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 2026-05-12T15:59:43.073+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 2 ms 2026-05-12T15:59:43.075+09:00 WARN 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] c.p.a.c.a.s.SecurityAuditTrailWriter : Authentication required. actorId=anonymous method=GET requestPath=/test-support/protected 2026-05-12T15:59:43.076+09:00 WARN 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] audit.auth : AUTHENTICATION_REQUIRED eventType="AUTHENTICATION_REQUIRED" actorId="anonymous" method="GET" requestPath="/test-support/protected" 2026-05-12T15:59:43.076+09:00 DEBUG 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.config.web.SecurityResponseExceptionHandler#handleAuthenticationException(AuthenticationException, HttpServletRequest) 2026-05-12T15:59:43.076+09:00 WARN 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] p.a.c.w.SecurityResponseExceptionHandler : Authentication required. exceptionType=InsufficientAuthenticationException method=GET requestPath=/test-support/protected errorCode=AUTH-001 2026-05-12T15:59:43.076+09:00 WARN 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] c.p.a.c.a.s.SecurityAuditTrailWriter : Authentication required. actorId=anonymous method=GET requestPath=/test-support/protected 2026-05-12T15:59:43.076+09:00 WARN 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] audit.auth : AUTHENTICATION_REQUIRED eventType="AUTHENTICATION_REQUIRED" actorId="anonymous" method="GET" requestPath="/test-support/protected" 2026-05-12T15:59:43.077+09:00 DEBUG 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] 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.077+09:00 DEBUG 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [ApiResult[success=false, code=AUTH-001, message=인증이 필요합니다., data=null, errors=null, traceId=1f8505a2 (truncated)...] 2026-05-12T15:59:43.078+09:00 DEBUG 3742337 --- [ Test worker] [traceId=1f8505a2974ce513ea52f13d821ca22c] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource]