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

   ### Motivation
   
   The existing `AliyunConvertersTest` only covers the integer clamping of 
`toInstanceOptionVO`. The standalone conversion helpers used across the Aliyun 
provider — Shanghai-zone datetime parsing, epoch conversion and defensive 
base64 decoding — were untested.
   
   ### Changes
   
   - `parseDateTimeShouldParseShanghaiFormatAndRejectMalformed`: `yyyy-MM-dd 
HH:mm:ss` parses, while null/blank/malformed inputs degrade to null.
   - `parseTimeMillisShouldConvertUsingShanghaiZone`: the same textual 
timestamp converts to epoch millis in the Asia/Shanghai zone, with null and 
malformed inputs yielding zero.
   - `formatTimeMillisShouldRenderShanghaiClock`: an epoch instant renders as 
the Asia/Shanghai wall clock.
   - `tryBase64DecodeShouldDecodeUtf8AndRejectOthers`: valid UTF-8 payloads 
decode, while invalid base64 and base64 whose payload is not valid UTF-8 both 
degrade to null.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=AliyunConvertersTest
   [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
   [INFO] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to