feat: 支持测试环境云 API 域名 - #8
Open
imroc wants to merge 2 commits into
Open
Conversation
- cloudapi 包新增 SetEndpointSuffix/NewClientProfile,SDK 调用云 API 时 可指向 <service>.test.tencentcloudapi.com 等测试域名 - 新增 --cloud-api-endpoint-suffix flag(env CLOUD_API_ENDPOINT_SUFFIX) - clb/vpc/cam/tag 四个 SDK client 统一走 NewClientProfile 创建 - chart 新增 cloudAPI.endpointSuffix/hostAliasesIP 配置,hostAliases 自动按后缀渲染测试域名,并注入环境变量
- 新增集成测试验证设置 Endpoint 后请求确实打到该域名 - 单测 map 循环改用 t.Errorf 收集全部失败
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
支持测试环境云 API 域名,方便在测试环境验证组件:
cloudapi包新增SetEndpointSuffix/NewClientProfile:通过设置 SDKHttpProfile.Endpoint,将云 API 调用指向<service>.test.tencentcloudapi.com等测试域名--cloud-api-endpoint-suffixflag(同时支持 envCLOUD_API_ENDPOINT_SUFFIX)NewClientProfile创建cloudAPI.endpointSuffix/cloudAPI.hostAliasesIP配置:hostAliases 自动按后缀渲染测试域名(clb/vpc/cam/tag),并注入环境变量测试