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

   ### Summary
   
   Adds the first dedicated unit test suite for `LlmConfigDTO`, the write 
payload of the LLM provider settings endpoint.
   
   The DTO is a plain form object that projects into `LlmConfigVO`; its 
`apiKey` is marked `@ToString.Exclude` so secrets never leak through logging. 
The tests pin the full mapping, the toString hygiene and the untouched-payload 
path.
   
   ### Changes
   
   - 
`server/src/test/java/org/apache/rocketmq/studio/ops/ai/LlmConfigDTOTest.java`
     - `mapsEveryFieldToVo`: provider, engine, api key, api base, model, 
token/temperature knobs, enabled flag and cloud deployment fields all reach the 
VO.
     - `apiKeyIsExcludedFromToString`: the secret never appears in the DTO 
rendering.
     - `mapsEmptyDtoWithoutNpe`: an untouched DTO maps with nulls and primitive 
defaults.
   
   ### Testing
   
   - `mvn -B test -Dtest=LlmConfigDTOTest` passes (3 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]

Reply via email to