Loyal-Young opened a new pull request, #7259:
URL: https://github.com/apache/rocketmq-dashboard/pull/7259

   ## Summary
   
   - Recalculate Mock certificate status and remaining days from `notAfter` on 
every list read, matching the real certificate service's refresh behavior.
   - Keep the stored Mock record untouched and retain defensive SAN copies.
   - Add a frozen-clock regression that checks both the expiring and expired 
states.
   
   Fixes #7258.
   
   ## Verification
   
   - Before the fix: the regression returned `valid` / 335 days when 12 days 
remained.
   - `npm test -- --run src/services/clusterService.test.ts`: 9 passed after 
the fix.
   - TypeScript build, changed-file ESLint and Prettier, and `git diff --check` 
passed.
   
   ## AI assistance
   
   I used AI assistance to compare Mock certificate listing with the real 
service's expiration refresh and draft the clock-controlled regression. I 
reproduced the stale status, reviewed the calculation, and ran the focused 
checks locally.
   


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