Skip to content

Commit 7e5764f

Browse files
committed
feat(clb): ipv6
1 parent ec06f52 commit 7e5764f

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

tencentcloud/services/clb/resource_tc_clb_instance_test.go

Lines changed: 4 additions & 23 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-if748odn"]
444440
445441
tags = {
446442
test = "tf"
@@ -509,9 +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-
}
515508
516509
resource "tencentcloud_vpc" "foo" {
517510
name = "clb-instance-open-vpc"
@@ -525,7 +518,7 @@ resource "tencentcloud_clb_instance" "clb_open" {
525518
project_id = 0
526519
target_region_info_region = "ap-guangzhou"
527520
target_region_info_vpc_id = tencentcloud_vpc.foo.id
528-
security_groups = [tencentcloud_security_group.foo.id]
521+
security_groups = ["sg-if748odn"]
529522
530523
tags = {
531524
test = "test"
@@ -546,12 +539,6 @@ resource "tencentcloud_subnet" "subnet" {
546539
is_multicast = false
547540
}
548541
549-
resource "tencentcloud_security_group" "sglab" {
550-
name = "clb-instance-enable-sg"
551-
description = "favourite sg"
552-
project_id = 0
553-
}
554-
555542
resource "tencentcloud_vpc" "foo" {
556543
name = "clb-instance-default-vpc"
557544
cidr_block = "10.0.0.0/16"
@@ -568,7 +555,7 @@ resource "tencentcloud_clb_instance" "default_enable" {
568555
vpc_id = tencentcloud_vpc.foo.id
569556
load_balancer_pass_to_target = true
570557
571-
security_groups = [tencentcloud_security_group.sglab.id]
558+
security_groups = ["sg-if748odn"]
572559
target_region_info_region = "ap-guangzhou"
573560
target_region_info_vpc_id = tencentcloud_vpc.foo.id
574561
@@ -591,12 +578,6 @@ resource "tencentcloud_subnet" "subnet" {
591578
is_multicast = false
592579
}
593580
594-
resource "tencentcloud_security_group" "sglab" {
595-
name = "clb-instance-enable-sg"
596-
description = "favourite sg"
597-
project_id = 0
598-
}
599-
600581
resource "tencentcloud_vpc" "foo" {
601582
name = "clb-instance-default-vpc"
602583
cidr_block = "10.0.0.0/16"
@@ -613,7 +594,7 @@ resource "tencentcloud_clb_instance" "default_enable" {
613594
vpc_id = tencentcloud_vpc.foo.id
614595
load_balancer_pass_to_target = true
615596
616-
security_groups = [tencentcloud_security_group.sglab.id]
597+
security_groups = ["sg-if748odn"]
617598
target_region_info_region = "ap-guangzhou"
618599
target_region_info_vpc_id = tencentcloud_vpc.foo.id
619600

0 commit comments

Comments
 (0)