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

   ### Motivation
   
   The data source API tests covered the happy paths of load/create/update, the 
multi-page export, and delete/test basics, but left authenticated connections, 
bearer tokens, short last pages, and the max-page guard untested. This PR grows 
the suite from 3 to 7 cases.
   
   ### Changes
   
   - `testDataSource` forwards `username`/`password` for basic-auth sources and 
`bearerToken` for token-auth sources.
   - `listAllDataSources` stops early when the last page comes back short 
(fewer items than the declared total).
   - `listAllDataSources` throws `Data source export exceeded 100 pages` when 
pages keep returning full inventories.
   
   ### Verification
   
   - `vitest run src/api/settings.test.ts`: 7/7 passed
   - `tsc --noEmit`: clean
   - `eslint src/api/settings.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