You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 15:48:52 UTC

[PR] test: cover TencentCloudSDKException mapping and cache key in TencentClientFactory [rocketmq-dashboard]

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

   ### Summary
   
   `TencentClientFactory.mapToBusinessException` maps SDK error codes to Studio `BusinessException` statuses (403 for denied, 422 for invalid credentials, 404 for missing resources, 502 otherwise) and `cacheKey` scopes cached clients per credential/region. Neither had tests.
   
   ### Changes
   
   - `AuthFailure`/`InvalidCredential`/`SignatureFailure` codes map to `422 Cloud credential is invalid`
   - `UnauthorizedOperation`/`AccessDenied` map to `403`, falling back to a default message when blank
   - `NotFound`/`ResourceNotFound` map to `404`
   - Unknown codes fall back to `502` with a prefixed message
   - `cacheKey` combines credential id and region
   
   ### Testing
   
   `mvn test -Dtest=TencentClientFactoryTest` passes: 10 tests, 0 failures (up from 4).


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test: cover TencentCloudSDKException mapping and cache key in TencentClientFactory [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3434: test: cover TencentCloudSDKException mapping and cache key in TencentClientFactory
URL: https://github.com/apache/rocketmq-dashboard/pull/3434


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org