@@ -21,8 +21,8 @@ func TestAccTencentCloudCynosdbClusterResource(t *testing.T) {
21
21
Check : resource .ComposeTestCheckFunc (
22
22
testAccCheckCynosdbClusterExists ("tencentcloud_cynosdb_cluster.foo" ),
23
23
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "available_zone" , "ap-guangzhou-4" ),
24
- resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "vpc_id" , "vpc-c5giv773 " ),
25
- resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "subnet_id" , "subnet-3hcc9h8e " ),
24
+ resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "vpc_id" , "vpc-4owdpnwr " ),
25
+ resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "subnet_id" , "subnet-qpxez62e " ),
26
26
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "db_type" , "MYSQL" ),
27
27
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "db_version" , "5.7" ),
28
28
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "storage_limit" , "1000" ),
@@ -32,7 +32,7 @@ func TestAccTencentCloudCynosdbClusterResource(t *testing.T) {
32
32
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "instance_maintain_weekdays.#" , "7" ),
33
33
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "instance_cpu_core" , "1" ),
34
34
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "instance_memory_size" , "2" ),
35
- resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "tags.test" , "test" ),
35
+ // resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.foo", "tags.test", "test"),
36
36
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "force_delete" , "true" ),
37
37
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "rw_group_sg.#" , "1" ),
38
38
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "ro_group_sg.#" , "1" ),
@@ -64,7 +64,7 @@ func TestAccTencentCloudCynosdbClusterResource(t *testing.T) {
64
64
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "instance_maintain_weekdays.#" , "6" ),
65
65
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "instance_cpu_core" , "2" ),
66
66
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "instance_memory_size" , "4" ),
67
- resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "tags.test" , "test-update" ),
67
+ // resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.foo", "tags.test", "test-update"),
68
68
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "rw_group_sg.#" , "1" ),
69
69
resource .TestCheckResourceAttr ("tencentcloud_cynosdb_cluster.foo" , "ro_group_sg.#" , "1" ),
70
70
),
@@ -98,8 +98,8 @@ func TestAccTencentCloudCynosdbClusterResourcePrePaid(t *testing.T) {
98
98
Check: resource.ComposeTestCheckFunc(
99
99
testAccCheckCynosdbClusterExists("tencentcloud_cynosdb_cluster.bar"),
100
100
resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.bar", "available_zone", "ap-guangzhou-4"),
101
- resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.bar", "vpc_id", "vpc-c5giv773 "),
102
- resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.bar", "subnet_id", "subnet-3hcc9h8e "),
101
+ resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.bar", "vpc_id", "vpc-4owdpnwr "),
102
+ resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.bar", "subnet_id", "subnet-qpxez62e "),
103
103
resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.bar", "db_type", "MYSQL"),
104
104
resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.bar", "db_version", "5.7"),
105
105
resource.TestCheckResourceAttr("tencentcloud_cynosdb_cluster.bar", "storage_limit", "1000"),
@@ -196,11 +196,11 @@ variable "availability_zone" {
196
196
}
197
197
198
198
variable "my_vpc" {
199
- default = "vpc-c5giv773 "
199
+ default = "vpc-4owdpnwr "
200
200
}
201
201
202
202
variable "my_subnet" {
203
- default = "subnet-3hcc9h8e "
203
+ default = "subnet-qpxez62e "
204
204
}
205
205
`
206
206
@@ -229,9 +229,9 @@ resource "tencentcloud_cynosdb_cluster" "foo" {
229
229
instance_cpu_core = 1
230
230
instance_memory_size = 2
231
231
232
- tags = {
233
- test = "test"
234
- }
232
+ # tags = {
233
+ # test = "test"
234
+ # }
235
235
236
236
force_delete = true
237
237
@@ -268,9 +268,9 @@ resource "tencentcloud_cynosdb_cluster" "foo" {
268
268
instance_cpu_core = 2
269
269
instance_memory_size = 4
270
270
271
- tags = {
272
- test = "test-update"
273
- }
271
+ # tags = {
272
+ # test = "test-update"
273
+ # }
274
274
275
275
force_delete = true
276
276
0 commit comments