Skip to content

Commit 1ac2580

Browse files
authored
fix: testcase - default vpc and subnet environment (#793)
1 parent 1741ac6 commit 1ac2580

12 files changed

+19
-19
lines changed

tencentcloud/basic_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ var appid string = os.Getenv("TENCENTCLOUD_APPID")
1313

1414
const (
1515
defaultRegion = "ap-guangzhou"
16-
defaultVpcId = "vpc-h70b6b49"
16+
defaultVpcId = "vpc-86v957zb"
1717
defaultVpcCidr = "172.16.0.0/16"
1818
defaultVpcCidrLess = "172.16.0.0/18"
1919

2020
defaultAZone = "ap-guangzhou-3"
21-
defaultSubnetId = "subnet-1uwh63so"
21+
defaultSubnetId = "subnet-rdng6k36"
2222
defaultSubnetCidr = "172.16.0.0/20"
2323
defaultSubnetCidrLess = "172.16.0.0/22"
2424

tencentcloud/resource_tc_cam_role.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func resourceTencentCloudCamRole() *schema.Resource {
122122
Type: schema.TypeBool,
123123
Optional: true,
124124
ForceNew: true,
125-
Description: "Indicade whether the CAM role can login or not.",
125+
Description: "Indicates whether the CAM role can login or not.",
126126
},
127127
"create_time": {
128128
Type: schema.TypeString,

tencentcloud/resource_tc_ckafka_instance.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ package tencentcloud
4444
import (
4545
"context"
4646
"fmt"
47+
"log"
48+
4749
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
4850
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
4951
ckafka "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka/v20190819"
5052
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
51-
"log"
5253
)
5354

5455
func resourceTencentCloudCkafkaInstance() *schema.Resource {
@@ -180,8 +181,8 @@ func resourceTencentCloudCkafkaInstance() *schema.Resource {
180181
"3 will be used by default.",
181182
},
182183
"default_replication_factor": {
183-
Type: schema.TypeInt,
184-
Required: true,
184+
Type: schema.TypeInt,
185+
Required: true,
185186
Description: "If auto.create.topic.enable is set to true but this value is not set, " +
186187
"2 will be used by default.",
187188
},

tencentcloud/resource_tc_clb_customized_config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ func resourceTencentCloudClbCustomizedConfig() *schema.Resource {
5151
Description: "Name of Customized Config.",
5252
},
5353
"config_content": {
54-
Type: schema.TypeString,
55-
Required: true,
56-
Description: "Content of Customized Config.",
54+
Type: schema.TypeString,
55+
Required: true,
56+
Description: "Content of Customized Config.",
5757
},
5858
"load_balancer_ids": {
5959
Type: schema.TypeSet,

tencentcloud/resource_tc_clb_instance.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ resource "tencentcloud_clb_instance" "open_clb1" {
8888
clb_name = "hello"
8989
master_zone_id = "ap-guangzhou-3"
9090
}
91-
~
9291
```
9392
9493
CREATE instance with log

tencentcloud/resource_tc_kubernetes_auth_attachment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Provide a resource to configure kubernetes cluster authentication info.
33
4-
~> **NOTE:** Only avaliable for cluster version >= 1.20
4+
~> **NOTE:** Only available for cluster version >= 1.20
55
66
Example Usage
77

tencentcloud/resource_tc_nat_gateway_snat.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ Import
107107
VPN gateway route can be imported using the id, the id format must be '{nat_gateway_id}#{resource_id}', resource_id range `subnet_id`, `instance_id`, e.g.
108108
109109
SUBNET SNat
110-
```hcl
110+
```
111111
$ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#subnet-2ap74y35
112112
```
113113
114114
NETWORKINTERFACT SNat
115-
```hcl
115+
```
116116
$ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#ins-da412f5a
117117
```
118118
*/

tencentcloud/service_tencentcloud_private_dns.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package tencentcloud
22

33
import (
44
"context"
5+
"log"
6+
57
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
68
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
7-
"log"
89

910
privatedns "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/privatedns/v20201028"
1011
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity"

website/docs/r/cam_role.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The following arguments are supported:
6767

6868
* `document` - (Required) Document of the CAM role. The syntax refers to [CAM POLICY](https://intl.cloud.tencent.com/document/product/598/10604). There are some notes when using this para in terraform: 1. The elements in json claimed supporting two types as `string` and `array` only support type `array`; 2. Terraform does not support the `root` syntax, when appears, it must be replaced with the uin it stands for.
6969
* `name` - (Required, ForceNew) Name of CAM role.
70-
* `console_login` - (Optional, ForceNew) Indicade whether the CAM role can login or not.
70+
* `console_login` - (Optional, ForceNew) Indicates whether the CAM role can login or not.
7171
* `description` - (Optional) Description of the CAM role.
7272

7373
## Attributes Reference

website/docs/r/clb_instance.html.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ resource "tencentcloud_clb_instance" "open_clb1" {
9898
clb_name = "hello"
9999
master_zone_id = "ap-guangzhou-3"
100100
}
101-
~
102101
```
103102

104103
CREATE instance with log

0 commit comments

Comments
 (0)