yyqdbngt opened a new pull request, #3367:
URL: https://github.com/apache/rocketmq-dashboard/pull/3367
## Summary
Extends the existing `@WebMvcTest` `StudioUserControllerTest` (2 to 6 tests)
to pin down the user management endpoints.
Added cases:
- `POST /api/studio-users` creates a user with the supplied
username/password/admin and returns a masked view (no password hash);
- `POST /api/studio-users/{id}/status` toggles the enabled flag with the
path user id;
- `POST /api/studio-users/{id}/password` resets the password through the
auth service;
- a too-short password is rejected by bean validation with HTTP 400.
## Why
The suite previously covered the list endpoints only; create/status/password
flows drive the whole Studio user management page.
## Testing
`mvn -B test -Dtest=StudioUserControllerTest` — 6/6 pass; checkstyle
(validate) clean.
--
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]