Skip to content

Commit f2ce901

Browse files
authored
adjust test case (#1373)
1 parent 3634d8a commit f2ce901

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

tencentcloud/resource_tc_kubernetes_cluster_attachment_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ data "tencentcloud_vpc_subnets" "sub" {
167167
vpc_id = data.tencentcloud_vpc_instances.vpcs.instance_list.0.vpc_id
168168
}
169169
170-
resource "tencentcloud_instance" "foo" {
170+
resource "tencentcloud_instance" "foo_attachment" {
171171
instance_name = "tf-auto-test-1-1"
172172
availability_zone = data.tencentcloud_vpc_subnets.sub.instance_list.0.availability_zone
173173
image_id = var.default_img_id
@@ -181,7 +181,7 @@ resource "tencentcloud_instance" "foo" {
181181
182182
resource "tencentcloud_kubernetes_cluster_attachment" "test_attach" {
183183
cluster_id = local.cluster_id
184-
instance_id = tencentcloud_instance.foo.id
184+
instance_id = tencentcloud_instance.foo_attachment.id
185185
password = "Lo4wbdit"
186186
unschedulable = 0
187187

tencentcloud/resource_tc_kubernetes_cluster_endpoint_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@ resource "tencentcloud_security_group" "new_sg" {
6767
name = "test-endpoint"
6868
}
6969
70-
resource "tencentcloud_security_group_lite_rule" "new_sg" {
71-
security_group_id = tencentcloud_security_group.new_sg.id
72-
73-
ingress = [
74-
"DROP#0.0.0.0/16#ALL#ALL",
75-
]
76-
}
77-
7870
locals {
7971
new_sg = tencentcloud_security_group.new_sg.id
8072
}

0 commit comments

Comments
 (0)