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

   ## Summary
   
   Extends the existing `AlertNotificationTemplateTest` (3 to 5 tests) to pin 
down the remaining documented template tokens.
   
   Added cases:
   - `title`, `description`, `metric`, `instanceId`, `level`, `time`, and raw 
`value` all expand to their alert/rule values (non-ratio metrics keep the raw 
value even with a `%` threshold unit);
   - missing alert times and current values expand to empty strings instead of 
`null`.
   
   ## Why
   
   The template engine builds every channel notification; only the 
rule/transition/value/labels tokens and the default format were covered before.
   
   ## Testing
   
   `mvn -B test -Dtest=AlertNotificationTemplateTest` — 5/5 pass; checkstyle 
(validate) clean.


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