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

   ### Motivation
   
   The alert rules API tests covered CRUD against the default cluster domain, 
leaving BUSINESS domain routing, paging, runtime status, transfer 
import/export, and the per-rule test endpoint unasserted. This PR grows the 
suite from 3 to 8 cases.
   
   ### Changes
   
   - `listAlertRules('BUSINESS')` and `listAlertRuleRuntime('BUSINESS')` route 
to the `/business-alert-rules` endpoints.
   - `listAlertRulesPage` forwards the paging query (`page`, `pageSize`, 
`enabled`) and unwraps the PageResult.
   - `bulkToggleAlertRules` / `bulkDeleteAlertRules` post `{ ids, enabled }` / 
`{ ids }` and return the bulk result contract.
   - `testAlertRule` posts the rule payload to `/cluster-alert-rules/test` and 
returns the sample analysis.
   - Transfer export/import round-trips the versioned `AlertRuleTransfer` 
payload on `/transfer` and `/import`.
   
   ### Verification
   
   - `vitest run src/api/alertRules.test.ts`: 8/8 passed
   - `tsc --noEmit`: clean
   - `eslint src/api/alertRules.test.ts`: 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