yyqdbngt opened a new pull request, #4078: URL: https://github.com/apache/rocketmq-dashboard/pull/4078
Fixes #4042 ## Summary Adds a regression case to `web/src/utils/aclRiskDiagnostics.test.ts` covering a cluster with ACL enabled but zero Plain Access accounts: it asserts `critical` status, `accountCount` of 0 in the summary, and the `NO_PLAIN_ACCESS_ACCOUNTS` issue code. ## Why Existing coverage only exercised the no-accounts path while ACL was also disabled (where the issue is a `warning`). When ACL is enabled, the same condition is elevated to `critical`, and that boundary had no coverage. ## Testing - `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` → exit 0 - `./node_modules/.bin/vitest run src/utils/aclRiskDiagnostics.test.ts` → 5 tests pass -- 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]
