youngkermit8-coder opened a new issue, #1812: URL: https://github.com/apache/rocketmq-dashboard/issues/1812
## Description The current `rocketmq-studio` head has four reproducible failures in the authentication MVC slice tests: 1. `AuthControllerTest.logoutShouldReturnSuccess` expects 200 but receives 401 because the request carries `Bearer token-1` without stubbing `AuthService.isAuthenticated` for that token. The registered interceptor therefore rejects the request before the controller is exercised. 2. All three `AuthCredentialAuthorizationIntegrationTest` cases fail to load their MVC context because `AclController` now requires `ApacheAclReadService`, but the focused slice does not provide a mock for that collaborator. ## Reproduction ```bash cd server mvn -Dtest=AuthControllerTest,AuthCredentialAuthorizationIntegrationTest test ``` Observed: 11 tests run, 1 failure and 3 errors. ## Expected behavior The focused slices should provide the authentication and controller collaborators required to reach the behavior under test, while retaining the existing production authorization rules. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
