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

   ### Motivation
   
   The existing `AliyunConvertersMessageKeysTest` covers key joining only. The 
message-body decoding (base64 UTF-8 vs plain text) and the missing-key output 
were untested.
   
   ### Changes
   
   - `toMessageRecordShouldDecodeBase64Utf8Body`: a base64 payload decodes to 
UTF-8 text and is tagged `bodyEncoding=UTF-8`.
   - `toMessageRecordShouldKeepPlainTextBodyAsText`: a non-base64 body stays 
verbatim and is tagged `bodyEncoding=TEXT`.
   - `toMessageRecordShouldReturnNullKeyWhenMessageKeysMissing`: a null or 
empty message-key list yields a null key.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=AliyunConvertersMessageKeysTest
   [INFO] Tests run: 4, 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