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/06 01:07:58 UTC

[PR] test: expand data source DTO validation coverage [rocketmq-dashboard]

yyqdbngt opened a new pull request, #3904:
URL: https://github.com/apache/rocketmq-dashboard/pull/3904

   ### Motivation
   
   The `DataSourceDTO` tests covered type canonicalization, blank bindings, and null instance ids, but the bean-validation rules (required name/type/url, supported type and auth patterns) were never asserted. This PR grows the suite from 3 to 9 cases.
   
   ### Changes
   
   - Auth mode is trimmed into the VO and common aliases normalize (`thanos` → `Thanos`, `victoria_metrics` → `VictoriaMetrics`).
   - Missing name, blank type, and missing url each produce their backend message.
   - Unsupported type (`influxdb`) and unsupported auth (`client certificate`) values are rejected with their pattern messages.
   - Every supported auth mode (`none`, `basic auth`, `bearer token`) validates cleanly.
   
   ### Verification
   
   - `mvn -B test -Dtest=DataSourceDTOTest`: 9/9 passed, BUILD SUCCESS


-- 
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: expand data source DTO validation coverage [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3904: test: expand data source DTO validation coverage
URL: https://github.com/apache/rocketmq-dashboard/pull/3904


-- 
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