Meu projeto ta retornando esse erro e nao consigo arrumar. Alguem pode me ajudar ?
[org.springframework.security.web.session.DisableEncodeUrlFilter@1e3f86d5, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@560271a1, org.springframework.security.web.context.SecurityContextPersistenceFilter@12fcb2c3, org.springframework.security.web.header.HeaderWriterFilter@49671897, org.springframework.security.web.authentication.logout.LogoutFilter@5db948c9, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@7ddcb0dc, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@517704, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@31a136a6, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@4b9c411, org.springframework.security.web.session.SessionManagementFilter@4026461d, org.springframework.security.web.access.ExceptionTranslationFilter@2d313c8c, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@4d518c66] 2023-07-31 15:30:50.265 INFO 12844 --- [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 2023-07-31 15:30:50.266 INFO 12844 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 2023-07-31 15:30:50.266 INFO 12844 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms 2023-07-31 15:30:50.298 INFO 12844 --- [ main] C.apigateway.ApiGatewayApplicationTests : Started ApiGatewayApplicationTests in 1.874 seconds (JVM running for 3.241)
MockHttpServletRequest: HTTP Method = GET Request URI = /products Parameters = {} Headers = [] Body = null Session Attrs = {SPRING_SECURITY_SAVED_REQUEST=DefaultSavedRequest [http://localhost/products]}
Handler: Type = null
Async: Async started = false Async result = null
Resolved Exception: Type = null
ModelAndView: View name = null View = null Model = null
FlashMap: Attributes = null
MockHttpServletResponse: Status = 401 Error message = Unauthorized Headers = [WWW-Authenticate:"Basic realm="Realm"", X-Content-Type-Options:"nosniff", X-XSS-Protection:"1; mode=block", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY"] Content type = null Body = Forwarded URL = null Redirected URL = null Cookies = []
java.lang.AssertionError: Status expected:<200> but was:<401> Expected :200 Actual :401
Process finished with exit code -1