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:15:00 UTC
[PR] test: add first unit test for RenewCertDTO [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3551:
URL: https://github.com/apache/rocketmq-dashboard/pull/3551
### Summary
Adds the first dedicated unit test suite for `RenewCertDTO`, the payload of the TLS certificate renewal endpoint.
The DTO requires a numeric certificate `id`. The tests cover the accepted id and the missing-id rejection.
### Changes
- `server/src/test/java/org/apache/rocketmq/studio/cluster/k8s/RenewCertDTOTest.java`
- `acceptsNumericId`: a populated id passes validation.
- `rejectsMissingId`: a null id yields the `id is required` violation.
### Testing
- `mvn -B test -Dtest=RenewCertDTOTest` passes (2 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 RenewCertDTO [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3551: test: add first unit test for RenewCertDTO
URL: https://github.com/apache/rocketmq-dashboard/pull/3551
--
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