You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 18:16:06 UTC
[PR] test: add first unit test for OpsNameServerDTO [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3553:
URL: https://github.com/apache/rocketmq-dashboard/pull/3553
### Summary
Adds the first dedicated unit test suite for `OpsNameServerDTO`, the payload of the ops namesrv address update endpoint.
The DTO requires a non-blank `namesrvAddr`, which may carry a semicolon-separated address list. The tests cover the single/multi address forms and the null/blank rejections.
### Changes
- `server/src/test/java/org/apache/rocketmq/studio/ops/OpsNameServerDTOTest.java`
- `acceptsNamesrvAddr`: a single endpoint passes validation.
- `acceptsMultiAddressList`: the semicolon-separated form passes.
- `rejectsMissingNamesrvAddr` / `rejectsBlankNamesrvAddr`: null or blank address yields the `namesrvAddr is required` violation.
### Testing
- `mvn -B test -Dtest=OpsNameServerDTOTest` passes (4 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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add first unit test for OpsNameServerDTO [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3553: test: add first unit test for OpsNameServerDTO
URL: https://github.com/apache/rocketmq-dashboard/pull/3553
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org