Skip to content

Commit 20363a4

Browse files
authored
fix:adjust e2e case (#1421)
1 parent a978a7f commit 20363a4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tencentcloud/basic_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ locals {
674674
}
675675
`
676676

677-
const TkeExclusiveNetwork = `
677+
const TkeExclusiveNetwork = defaultAzVariable + `
678678
data "tencentcloud_vpc_instances" "vpc" {
679679
name = "` + tkeExclusiveVpcName + `"
680680
}
@@ -688,6 +688,10 @@ data "tencentcloud_instance_types" "default" {
688688
name = "zone"
689689
values = [var.default_az]
690690
}
691+
filter {
692+
name = "instance-charge-type"
693+
values = ["POSTPAID_BY_HOUR"]
694+
}
691695
cpu_core_count = 2
692696
exclude_sold_out = true
693697
}

tencentcloud/resource_tc_kubernetes_scale_worker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func testAccCheckTkeScaleWorkerExists(n string) resource.TestCheckFunc {
196196
}
197197
}
198198

199-
const testAccTkeScaleWorkerInstanceBasic = defaultAzVariable + TkeExclusiveNetwork + TkeDataSource + defaultSecurityGroupData
199+
const testAccTkeScaleWorkerInstanceBasic = TkeExclusiveNetwork + TkeDataSource + defaultSecurityGroupData
200200

201201
const testAccTkeScaleWorkerInstance string = testAccTkeScaleWorkerInstanceBasic + `
202202

0 commit comments

Comments
 (0)