yyqdbngt opened a new pull request, #3582:
URL: https://github.com/apache/rocketmq-dashboard/pull/3582
### Summary
Deepens `StudioUserControllerTest` with the three write endpoints that were
previously uncovered: user creation, the enabled toggle and the admin password
reset.
### Changes
-
`server/src/test/java/org/apache/rocketmq/studio/auth/StudioUserControllerTest.java`
- `createReturnsCreatedUser`: POST /api/studio-users delegates to the auth
service and never leaks the password hash.
- `updateStatusTogglesUserEnabled`: POST /{userId}/status carries the
`enabled` flag into the service.
- `resetPasswordDelegatesToAuthService`: POST /{userId}/password routes
the new password through `changePassword`.
Suite grows from 2 to 5 tests.
### Testing
- `mvn -B test -Dtest=StudioUserControllerTest` passes (5 tests, all green).
--
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]