Skip to content

Commit 7bd6f4d

Browse files
authored
Feat/pg e2e case fix and example tke (#1980)
* example readjust: tencentcloud_kubernetes_serverless_node_pool * add pre-commit-local * adjust e2e case * update example * 1.update tke example 2.update pg e2e case
1 parent f81c0b1 commit 7bd6f4d

26 files changed

+282
-128
lines changed

tencentcloud/data_source_tc_postgresql_backup_download_urls_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func TestAccTencentCloudPostgresqlBackupDownloadUrlsDataSource_basic(t *testing.T) {
10-
t.Parallel()
10+
// t.Parallel()
1111
// loc, _ := time.LoadLocation("Asia/Chongqing")
1212
// startTime := time.Now().AddDate(0, 0, -7).In(loc).Format("2006-01-02 15:04:05")
1313
// endTime := time.Now().AddDate(0, 0, 1).In(loc).Format("2006-01-02 15:04:05")

tencentcloud/data_source_tc_postgresql_base_backups_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
const testAccPostgresqlBaseBackupsObject = "data.tencentcloud_postgresql_base_backups.base_backups"
1212

1313
func TestAccTencentCloudPostgresqlBaseBackupsDataSource_basic(t *testing.T) {
14-
t.Parallel()
14+
// t.Parallel()
1515
loc, _ := time.LoadLocation("Asia/Chongqing")
1616
startTime := time.Now().AddDate(0, 0, -7).In(loc).Format("2006-01-02 15:04:05")
1717
endTime := time.Now().AddDate(0, 0, 1).In(loc).Format("2006-01-02 15:04:05")

tencentcloud/data_source_tc_postgresql_db_instance_classes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func TestAccTencentCloudPostgresqlDbInstanceClassesDataSource_basic(t *testing.T) {
10-
t.Parallel()
10+
// t.Parallel()
1111
resource.Test(t, resource.TestCase{
1212
PreCheck: func() {
1313
testAccPreCheck(t)

tencentcloud/data_source_tc_postgresql_db_instance_versions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func TestAccTencentCloudPostgresqlDbInstanceVersionsDataSource_basic(t *testing.T) {
10-
t.Parallel()
10+
// t.Parallel()
1111
resource.Test(t, resource.TestCase{
1212
PreCheck: func() {
1313
testAccStepSetRegion(t, "ap-guangzhou")

tencentcloud/data_source_tc_postgresql_default_parameters_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func TestAccTencentCloudPostgresqlDefaultParametersDataSource_basic(t *testing.T) {
10-
t.Parallel()
10+
// t.Parallel()
1111
resource.Test(t, resource.TestCase{
1212
PreCheck: func() {
1313
testAccStepSetRegion(t, "ap-guangzhou")

tencentcloud/data_source_tc_postgresql_instances_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
var testDataPostgresqlInstancesName = "data.tencentcloud_postgresql_instances.id_test"
1010

1111
func TestAccTencentCloudPostgresqlInstancesDataSource(t *testing.T) {
12-
t.Parallel()
12+
// t.Parallel()
1313
resource.Test(t, resource.TestCase{
1414
PreCheck: func() {
1515
testAccStepSetRegion(t, "ap-guangzhou")

tencentcloud/data_source_tc_postgresql_log_backups_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
func TestAccTencentCloudPostgresqlLogBackupsDataSource_basic(t *testing.T) {
12-
t.Parallel()
12+
// t.Parallel()
1313
loc, _ := time.LoadLocation("Asia/Chongqing")
1414
startTime := time.Now().AddDate(0, 0, -7).In(loc).Format("2006-01-02 15:04:05")
1515
endTime := time.Now().AddDate(0, 0, 1).In(loc).Format("2006-01-02 15:04:05")
@@ -52,7 +52,7 @@ func TestAccTencentCloudPostgresqlLogBackupsDataSource_basic(t *testing.T) {
5252
})
5353
}
5454

55-
const testAccPostgresqlLogBackupsDataSource = CommonPresetPGSQL + `
55+
const testAccPostgresqlLogBackupsDataSource = OperationPresetPGSQL + `
5656
5757
data "tencentcloud_postgresql_log_backups" "log_backups" {
5858
min_finish_time = "%s"

tencentcloud/data_source_tc_postgresql_parameter_templates_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
func TestAccTencentCloudPostgresqlParameterTemplatesDataSource_basic(t *testing.T) {
10-
t.Parallel()
10+
// t.Parallel()
1111
resource.Test(t, resource.TestCase{
1212
PreCheck: func() {
1313
testAccStepSetRegion(t, "ap-guangzhou")

tencentcloud/data_source_tc_postgresql_readonly_groups_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
const testAccPostgresqlReadonlyGroupsObject = "data.tencentcloud_postgresql_readonly_groups.read_only_groups"
1010

1111
func TestAccTencentCloudPostgresqlReadonlyGroupsDataSource_basic(t *testing.T) {
12-
t.Parallel()
12+
// t.Parallel()
1313
resource.Test(t, resource.TestCase{
1414
PreCheck: func() {
1515
testAccStepSetRegion(t, "ap-guangzhou")

tencentcloud/data_source_tc_postgresql_recovery_time_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
const testAccPostgresqlrecoverytimeObject = "data.tencentcloud_postgresql_recovery_time.recovery_time"
1010

1111
func TestAccTencentCloudPostgresqlRecoveryTimeDataSource_basic(t *testing.T) {
12-
t.Parallel()
12+
// t.Parallel()
1313
resource.Test(t, resource.TestCase{
1414
PreCheck: func() {
1515
testAccStepSetRegion(t, "ap-guangzhou")

0 commit comments

Comments
 (0)