Skip to content

Commit 2f3dd42

Browse files
committed
add
1 parent 0b5fe35 commit 2f3dd42

File tree

4 files changed

+12
-32
lines changed

4 files changed

+12
-32
lines changed

tencentcloud/services/clb/resource_tc_clb_instance_test.go

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,6 @@ resource "tencentcloud_clb_instance" "clb_internal" {
424424
`
425425

426426
const testAccClbInstance_open = `
427-
resource "tencentcloud_security_group" "foo" {
428-
name = "keep-ci-temp-test-sg"
429-
}
430-
431427
resource "tencentcloud_vpc" "foo" {
432428
name = "clb-instance-open-vpc"
433429
cidr_block = "10.0.0.0/16"
@@ -440,7 +436,7 @@ resource "tencentcloud_clb_instance" "clb_open" {
440436
vpc_id = tencentcloud_vpc.foo.id
441437
target_region_info_region = "ap-guangzhou"
442438
target_region_info_vpc_id = tencentcloud_vpc.foo.id
443-
security_groups = [tencentcloud_security_group.foo.id]
439+
security_groups = ["sg-5275dorp"]
444440
445441
tags = {
446442
test = "tf"
@@ -509,10 +505,6 @@ resource "tencentcloud_clb_instance" "clb_internal" {
509505
}
510506
`
511507
const testAccClbInstance_update_open = `
512-
resource "tencentcloud_security_group" "foo" {
513-
name = "clb-instance-sg"
514-
}
515-
516508
resource "tencentcloud_vpc" "foo" {
517509
name = "clb-instance-open-vpc"
518510
cidr_block = "10.0.0.0/16"
@@ -525,7 +517,7 @@ resource "tencentcloud_clb_instance" "clb_open" {
525517
project_id = 0
526518
target_region_info_region = "ap-guangzhou"
527519
target_region_info_vpc_id = tencentcloud_vpc.foo.id
528-
security_groups = [tencentcloud_security_group.foo.id]
520+
security_groups = ["sg-5275dorp"]
529521
530522
tags = {
531523
test = "test"
@@ -546,12 +538,6 @@ resource "tencentcloud_subnet" "subnet" {
546538
is_multicast = false
547539
}
548540
549-
resource "tencentcloud_security_group" "sglab" {
550-
name = "clb-instance-enable-sg"
551-
description = "favourite sg"
552-
project_id = 0
553-
}
554-
555541
resource "tencentcloud_vpc" "foo" {
556542
name = "clb-instance-default-vpc"
557543
cidr_block = "10.0.0.0/16"
@@ -568,7 +554,7 @@ resource "tencentcloud_clb_instance" "default_enable" {
568554
vpc_id = tencentcloud_vpc.foo.id
569555
load_balancer_pass_to_target = true
570556
571-
security_groups = [tencentcloud_security_group.sglab.id]
557+
security_groups = ["sg-5275dorp"]
572558
target_region_info_region = "ap-guangzhou"
573559
target_region_info_vpc_id = tencentcloud_vpc.foo.id
574560
@@ -591,12 +577,6 @@ resource "tencentcloud_subnet" "subnet" {
591577
is_multicast = false
592578
}
593579
594-
resource "tencentcloud_security_group" "sglab" {
595-
name = "clb-instance-enable-sg"
596-
description = "favourite sg"
597-
project_id = 0
598-
}
599-
600580
resource "tencentcloud_vpc" "foo" {
601581
name = "clb-instance-default-vpc"
602582
cidr_block = "10.0.0.0/16"
@@ -613,7 +593,7 @@ resource "tencentcloud_clb_instance" "default_enable" {
613593
vpc_id = tencentcloud_vpc.foo.id
614594
load_balancer_pass_to_target = true
615595
616-
security_groups = [tencentcloud_security_group.sglab.id]
596+
security_groups = ["sg-5275dorp"]
617597
target_region_info_region = "ap-guangzhou"
618598
target_region_info_vpc_id = tencentcloud_vpc.foo.id
619599

tencentcloud/services/cvm/resource_tc_cvm_sync_image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Example Usage
44

55
```hcl
66
data "tencentcloud_images" "example" {
7-
image_type = ["PUBLIC_IMAGE"]
8-
image_name_regex = "Final"
7+
image_type = ["PRIVATE_IMAGE"]
8+
image_name_regex = "MyImage"
99
}
1010
1111
resource "tencentcloud_cvm_sync_image" "example" {

tencentcloud/services/cvm/resource_tc_cvm_sync_image_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func init() {
5757
})
5858
}
5959

60-
// go test -i; go test -test.run TestAccTencentCloudCvmSyncImageResource_basic -v
61-
func TestAccTencentCloudCvmSyncImageResource_basic(t *testing.T) {
60+
// go test -i; go test -test.run TestAccTencentCloudNeedFixCvmSyncImageResource_basic -v
61+
func TestAccTencentCloudNeedFixCvmSyncImageResource_basic(t *testing.T) {
6262
t.Parallel()
6363
resource.Test(t, resource.TestCase{
6464
PreCheck: func() { tcacctest.AccPreCheck(t) },
@@ -78,11 +78,11 @@ func TestAccTencentCloudCvmSyncImageResource_basic(t *testing.T) {
7878

7979
const testAccCvmSyncImage = `
8080
data "tencentcloud_images" "example" {
81-
image_type = ["PUBLIC_IMAGE"]
81+
image_type = ["PRIVATE_IMAGE"]
8282
}
8383
8484
resource "tencentcloud_cvm_sync_image" "example" {
8585
image_id = data.tencentcloud_images.example.images.0.image_id
86-
destination_regions = ["ap-guangzhou", "ap-shanghai"]
86+
destination_regions = ["ap-shanghai"]
8787
}
8888
`

website/docs/r/cvm_sync_image.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Provides a resource to create a cvm sync_image
1515

1616
```hcl
1717
data "tencentcloud_images" "example" {
18-
image_type = ["PUBLIC_IMAGE"]
19-
image_name_regex = "Final"
18+
image_type = ["PRIVATE_IMAGE"]
19+
image_name_regex = "MyImage"
2020
}
2121
2222
resource "tencentcloud_cvm_sync_image" "example" {

0 commit comments

Comments
 (0)