Skip to content

Conversation

@ttomzhou
Copy link
Contributor

cdn resource

make testacc TESTARGS="-run TestAccTencentCloudCdnDomainWithHTTPs"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -run TestAccTencentCloudCdnDomainWithHTTPs -timeout 120m
?       github.com/tencentcloudstack/terraform-provider-tencentcloud    [no test files]
testing: warning: no tests to run
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/gendoc     (cached) [no tests to run]
=== RUN   TestAccTencentCloudCdnDomainWithHTTPs
--- PASS: TestAccTencentCloudCdnDomainWithHTTPs (180.51s)
PASS
ok      github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud       181.259s
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity  [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper       [no test files]
?       github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit     [no test files]

}
if v := config["force_redirect"]; len(v.([]interface{})) > 0 {
forceRedirect := v.([]interface{})
if len(forceRedirect) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上面不是判断了么

}
if v := config["force_redirect"]; len(v.([]interface{})) > 0 {
forceRedirect := v.([]interface{})
if len(forceRedirect) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

The `force_redirect` object supports the following:

* `redirect_status_code` - (Optional) Access forced jump code. Valid values are `301` and `302`. When `switch` setting `off`, this property does not need to be set or set to `302`.
* `redirect_type` - (Optional) Access forced jump type. Valid values are `http` and `https`. When `switch` setting `off`, this property does not need to be set or set to `http`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default value是啥没有写,然后example内给的是只有switch的示例,用户怎么知道这么写开启的是啥类型啥状态码呢

@gailwang gailwang merged commit 84003cf into tencentcloudstack:master Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants