From c99372953ec2f6b8faf7ba3aa79a2fdb30ec5093 Mon Sep 17 00:00:00 2001 From: hellertang Date: Fri, 5 Jan 2024 20:27:48 +0800 Subject: [PATCH 1/2] fix sweeper logic --- .../services/antiddos/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/apigateway/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/apm/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/as/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/audit/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/bh/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/bi/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cam/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cat/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cbs/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/ccn/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cdb/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cdh/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cdn/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cdwch/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cdwpg/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cfs/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cfw/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/chdfs/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/ci/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/ciam/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/ckafka/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/clb/resource_tc_clb_instance_test.go | 9 ++++----- .../services/clb/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cls/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cos/resource_tc_cos_bucket_test.go | 8 ++++---- .../services/cos/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/crs/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/css/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cvm/resource_tc_instance_test.go | 9 ++++----- .../services/cvm/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cwp/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/cynosdb/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dayu/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dayuv2/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dbbrain/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dc/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dcdb/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dcg/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dlc/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dnspod/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/domain/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/dts/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/eb/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/emr/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/es/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/fl/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/gaap/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/kms/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/lighthouse/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/mariadb/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/mdl/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/mongodb/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/monitor/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/mps/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/oceanus/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/pls/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/postgresql/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/privatedns/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/project/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/pts/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/rum/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/scf/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/ses/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/sms/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/sqlserver/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/ssl/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/ssm/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/sts/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tag/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tat/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tcaplusdb/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tcm/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tcmg/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tcmq/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tco/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tcr/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tdcpg/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tdmq/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tem/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/teo/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tke/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tmp/tencentcloud_sweeper_test.go | 12 ++++++++++++ .../services/tpulsar/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/trabbit/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/trocket/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tse/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/tsf/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/vod/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/vpc/tencentcloud_sweeper_test.go | 10 ++++++++++ .../services/vpn/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/waf/tencentcloud_sweeper_test.go | 11 +++++++++++ .../services/wedata/tencentcloud_sweeper_test.go | 11 +++++++++++ 93 files changed, 1002 insertions(+), 14 deletions(-) create mode 100644 tencentcloud/services/antiddos/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/apigateway/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/apm/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/as/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/audit/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/bh/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/bi/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cam/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cat/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cbs/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/ccn/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cdb/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cdh/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cdn/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cdwch/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cdwpg/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cfs/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cfw/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/chdfs/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/ci/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/ciam/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/ckafka/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/clb/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cls/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cos/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/crs/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/css/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cvm/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cwp/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/cynosdb/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dayu/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dayuv2/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dbbrain/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dc/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dcdb/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dcg/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dlc/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dnspod/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/domain/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/dts/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/eb/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/emr/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/es/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/fl/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/gaap/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/kms/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/lighthouse/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/mariadb/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/mdl/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/mongodb/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/monitor/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/mps/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/oceanus/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/pls/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/postgresql/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/privatedns/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/project/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/pts/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/rum/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/scf/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/ses/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/sms/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/sqlserver/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/ssl/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/ssm/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/sts/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tag/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tat/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tcaplusdb/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tcm/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tcmg/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tcmq/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tco/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tcr/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tdcpg/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tdmq/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tem/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/teo/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tke/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tmp/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tpulsar/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/trabbit/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/trocket/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tse/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/tsf/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/vod/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/vpc/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/vpn/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/waf/tencentcloud_sweeper_test.go create mode 100644 tencentcloud/services/wedata/tencentcloud_sweeper_test.go diff --git a/tencentcloud/services/antiddos/tencentcloud_sweeper_test.go b/tencentcloud/services/antiddos/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..943e61cdeb --- /dev/null +++ b/tencentcloud/services/antiddos/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package antiddos_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/apigateway/tencentcloud_sweeper_test.go b/tencentcloud/services/apigateway/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..8c99fe7f0f --- /dev/null +++ b/tencentcloud/services/apigateway/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package apigateway_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/apm/tencentcloud_sweeper_test.go b/tencentcloud/services/apm/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..c5b4d42e8f --- /dev/null +++ b/tencentcloud/services/apm/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package apm_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/as/tencentcloud_sweeper_test.go b/tencentcloud/services/as/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..1bc99777a7 --- /dev/null +++ b/tencentcloud/services/as/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package as_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/audit/tencentcloud_sweeper_test.go b/tencentcloud/services/audit/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..ef4cf8bf0f --- /dev/null +++ b/tencentcloud/services/audit/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package audit_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/bh/tencentcloud_sweeper_test.go b/tencentcloud/services/bh/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..5b7b9e7f8b --- /dev/null +++ b/tencentcloud/services/bh/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package bh_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/bi/tencentcloud_sweeper_test.go b/tencentcloud/services/bi/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..e6221bbe83 --- /dev/null +++ b/tencentcloud/services/bi/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package bi_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cam/tencentcloud_sweeper_test.go b/tencentcloud/services/cam/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..70f5593985 --- /dev/null +++ b/tencentcloud/services/cam/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cam_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cat/tencentcloud_sweeper_test.go b/tencentcloud/services/cat/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..595b9d9cad --- /dev/null +++ b/tencentcloud/services/cat/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cat_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cbs/tencentcloud_sweeper_test.go b/tencentcloud/services/cbs/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..cb2c9876c9 --- /dev/null +++ b/tencentcloud/services/cbs/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cbs_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/ccn/tencentcloud_sweeper_test.go b/tencentcloud/services/ccn/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..525eab221e --- /dev/null +++ b/tencentcloud/services/ccn/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package ccn_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cdb/tencentcloud_sweeper_test.go b/tencentcloud/services/cdb/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..11654947c6 --- /dev/null +++ b/tencentcloud/services/cdb/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cdb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cdh/tencentcloud_sweeper_test.go b/tencentcloud/services/cdh/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..8472cdf493 --- /dev/null +++ b/tencentcloud/services/cdh/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cdh_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cdn/tencentcloud_sweeper_test.go b/tencentcloud/services/cdn/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..b59a42f287 --- /dev/null +++ b/tencentcloud/services/cdn/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cdn_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cdwch/tencentcloud_sweeper_test.go b/tencentcloud/services/cdwch/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..fe0e67503e --- /dev/null +++ b/tencentcloud/services/cdwch/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cdwch_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cdwpg/tencentcloud_sweeper_test.go b/tencentcloud/services/cdwpg/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..912858571e --- /dev/null +++ b/tencentcloud/services/cdwpg/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cdwpg_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cfs/tencentcloud_sweeper_test.go b/tencentcloud/services/cfs/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..7cdf02a157 --- /dev/null +++ b/tencentcloud/services/cfs/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cfs_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cfw/tencentcloud_sweeper_test.go b/tencentcloud/services/cfw/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..d99999260e --- /dev/null +++ b/tencentcloud/services/cfw/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cfw_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/chdfs/tencentcloud_sweeper_test.go b/tencentcloud/services/chdfs/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..7d5ad6c521 --- /dev/null +++ b/tencentcloud/services/chdfs/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package chdfs_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/ci/tencentcloud_sweeper_test.go b/tencentcloud/services/ci/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..85eef67a23 --- /dev/null +++ b/tencentcloud/services/ci/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package ci_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/ciam/tencentcloud_sweeper_test.go b/tencentcloud/services/ciam/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..879cd6ac90 --- /dev/null +++ b/tencentcloud/services/ciam/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package ciam_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/ckafka/tencentcloud_sweeper_test.go b/tencentcloud/services/ckafka/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..8b528729b2 --- /dev/null +++ b/tencentcloud/services/ckafka/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package ckafka_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/clb/resource_tc_clb_instance_test.go b/tencentcloud/services/clb/resource_tc_clb_instance_test.go index d1f513136c..844633e28f 100644 --- a/tencentcloud/services/clb/resource_tc_clb_instance_test.go +++ b/tencentcloud/services/clb/resource_tc_clb_instance_test.go @@ -8,7 +8,6 @@ import ( "context" "fmt" "log" - "strings" "testing" "time" @@ -51,15 +50,15 @@ func testSweepClbInstance(region string) error { if len(res) > 0 { for _, v := range res { id := *v.LoadBalancerId - instanceName := *v.LoadBalancerName + //instanceName := *v.LoadBalancerName createTime := tccommon.StringToTime(*v.CreateTime) now := time.Now() interval := now.Sub(createTime).Minutes() // keep not delete - if strings.HasPrefix(instanceName, tcacctest.KeepResource) || strings.HasPrefix(instanceName, tcacctest.DefaultResource) { - continue - } + //if strings.HasPrefix(instanceName, tcacctest.KeepResource) || strings.HasPrefix(instanceName, tcacctest.DefaultResource) { + // continue + //} // less than 30 minute, not delete if tccommon.NeedProtect == 1 && int64(interval) < 30 { continue diff --git a/tencentcloud/services/clb/tencentcloud_sweeper_test.go b/tencentcloud/services/clb/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..018ac8d36d --- /dev/null +++ b/tencentcloud/services/clb/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package clb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cls/tencentcloud_sweeper_test.go b/tencentcloud/services/cls/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..7568644f06 --- /dev/null +++ b/tencentcloud/services/cls/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cls + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cos/resource_tc_cos_bucket_test.go b/tencentcloud/services/cos/resource_tc_cos_bucket_test.go index 26539c3945..b14d648f42 100644 --- a/tencentcloud/services/cos/resource_tc_cos_bucket_test.go +++ b/tencentcloud/services/cos/resource_tc_cos_bucket_test.go @@ -39,13 +39,13 @@ func testSweepCosBuckets(region string) error { return fmt.Errorf("list buckets error: %s", err.Error()) } - prefix := regexp.MustCompile("^(tf|test)-") + //prefix := regexp.MustCompile("^(tf|test)-") for _, v := range buckets { bucket := *v.Name - if !prefix.MatchString(bucket) { - continue - } + //if !prefix.MatchString(bucket) { + // continue + //} // delete all object in the bucket before deleting bucket if objects, err := cosService.ListObjects(ctx, bucket); err != nil { diff --git a/tencentcloud/services/cos/tencentcloud_sweeper_test.go b/tencentcloud/services/cos/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..742ceb50df --- /dev/null +++ b/tencentcloud/services/cos/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cos_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/crs/tencentcloud_sweeper_test.go b/tencentcloud/services/crs/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..d0a1fc49cc --- /dev/null +++ b/tencentcloud/services/crs/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package crs_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/css/tencentcloud_sweeper_test.go b/tencentcloud/services/css/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..7df91dd1aa --- /dev/null +++ b/tencentcloud/services/css/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package css_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cvm/resource_tc_instance_test.go b/tencentcloud/services/cvm/resource_tc_instance_test.go index 337304c388..a4be69cb1e 100644 --- a/tencentcloud/services/cvm/resource_tc_instance_test.go +++ b/tencentcloud/services/cvm/resource_tc_instance_test.go @@ -9,7 +9,6 @@ import ( "context" "fmt" "log" - "strings" "testing" "time" @@ -43,14 +42,14 @@ func testSweepCvmInstance(region string) error { for _, v := range instances { instanceId := *v.InstanceId - instanceName := *v.InstanceName + //instanceName := *v.InstanceName now := time.Now() createTime := tccommon.StringToTime(*v.CreatedTime) interval := now.Sub(createTime).Minutes() - if strings.HasPrefix(instanceName, tcacctest.KeepResource) || strings.HasPrefix(instanceName, tcacctest.DefaultResource) { - continue - } + //if strings.HasPrefix(instanceName, tcacctest.KeepResource) || strings.HasPrefix(instanceName, tcacctest.DefaultResource) { + // continue + //} if tccommon.NeedProtect == 1 && int64(interval) < 30 { continue diff --git a/tencentcloud/services/cvm/tencentcloud_sweeper_test.go b/tencentcloud/services/cvm/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..e513faf3c2 --- /dev/null +++ b/tencentcloud/services/cvm/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cvm_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cwp/tencentcloud_sweeper_test.go b/tencentcloud/services/cwp/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..144727e159 --- /dev/null +++ b/tencentcloud/services/cwp/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cwp_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/cynosdb/tencentcloud_sweeper_test.go b/tencentcloud/services/cynosdb/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..c0da86be09 --- /dev/null +++ b/tencentcloud/services/cynosdb/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package cynosdb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dayu/tencentcloud_sweeper_test.go b/tencentcloud/services/dayu/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..90eb968702 --- /dev/null +++ b/tencentcloud/services/dayu/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dayu_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dayuv2/tencentcloud_sweeper_test.go b/tencentcloud/services/dayuv2/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..45e79a0616 --- /dev/null +++ b/tencentcloud/services/dayuv2/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dayuv2_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dbbrain/tencentcloud_sweeper_test.go b/tencentcloud/services/dbbrain/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..7c6417b058 --- /dev/null +++ b/tencentcloud/services/dbbrain/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dbbrain_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dc/tencentcloud_sweeper_test.go b/tencentcloud/services/dc/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..fd348554ae --- /dev/null +++ b/tencentcloud/services/dc/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dcdb/tencentcloud_sweeper_test.go b/tencentcloud/services/dcdb/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..2d8a94a304 --- /dev/null +++ b/tencentcloud/services/dcdb/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dcdb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dcg/tencentcloud_sweeper_test.go b/tencentcloud/services/dcg/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..e45fb35723 --- /dev/null +++ b/tencentcloud/services/dcg/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dcg_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dlc/tencentcloud_sweeper_test.go b/tencentcloud/services/dlc/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..0f76c99add --- /dev/null +++ b/tencentcloud/services/dlc/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dnspod/tencentcloud_sweeper_test.go b/tencentcloud/services/dnspod/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..fdbafe88d4 --- /dev/null +++ b/tencentcloud/services/dnspod/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dnspod_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/domain/tencentcloud_sweeper_test.go b/tencentcloud/services/domain/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..c1f3f05075 --- /dev/null +++ b/tencentcloud/services/domain/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package domain_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/dts/tencentcloud_sweeper_test.go b/tencentcloud/services/dts/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..5870e055d9 --- /dev/null +++ b/tencentcloud/services/dts/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package dts_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/eb/tencentcloud_sweeper_test.go b/tencentcloud/services/eb/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..bcea752bcb --- /dev/null +++ b/tencentcloud/services/eb/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package eb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/emr/tencentcloud_sweeper_test.go b/tencentcloud/services/emr/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..f8ddee604c --- /dev/null +++ b/tencentcloud/services/emr/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package emr_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/es/tencentcloud_sweeper_test.go b/tencentcloud/services/es/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..fb7df41796 --- /dev/null +++ b/tencentcloud/services/es/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package es_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/fl/tencentcloud_sweeper_test.go b/tencentcloud/services/fl/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..cba010c177 --- /dev/null +++ b/tencentcloud/services/fl/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package fl_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/gaap/tencentcloud_sweeper_test.go b/tencentcloud/services/gaap/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..3ecb47e7b2 --- /dev/null +++ b/tencentcloud/services/gaap/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package gaap_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/kms/tencentcloud_sweeper_test.go b/tencentcloud/services/kms/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..b70a6458a0 --- /dev/null +++ b/tencentcloud/services/kms/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package kms_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/lighthouse/tencentcloud_sweeper_test.go b/tencentcloud/services/lighthouse/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..1640c898f2 --- /dev/null +++ b/tencentcloud/services/lighthouse/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package lighthouse_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/mariadb/tencentcloud_sweeper_test.go b/tencentcloud/services/mariadb/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..4efb2c0668 --- /dev/null +++ b/tencentcloud/services/mariadb/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package mariadb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/mdl/tencentcloud_sweeper_test.go b/tencentcloud/services/mdl/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..a35f95a127 --- /dev/null +++ b/tencentcloud/services/mdl/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package mdl_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/mongodb/tencentcloud_sweeper_test.go b/tencentcloud/services/mongodb/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..fcc02472a1 --- /dev/null +++ b/tencentcloud/services/mongodb/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package mongodb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/monitor/tencentcloud_sweeper_test.go b/tencentcloud/services/monitor/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..37f6c46943 --- /dev/null +++ b/tencentcloud/services/monitor/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package monitor_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/mps/tencentcloud_sweeper_test.go b/tencentcloud/services/mps/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..1f6a458761 --- /dev/null +++ b/tencentcloud/services/mps/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package mps_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/oceanus/tencentcloud_sweeper_test.go b/tencentcloud/services/oceanus/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..47dd3fb881 --- /dev/null +++ b/tencentcloud/services/oceanus/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package oceanus_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/pls/tencentcloud_sweeper_test.go b/tencentcloud/services/pls/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..00758d1844 --- /dev/null +++ b/tencentcloud/services/pls/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package pls_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/postgresql/tencentcloud_sweeper_test.go b/tencentcloud/services/postgresql/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..82f4fef797 --- /dev/null +++ b/tencentcloud/services/postgresql/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package postgresql_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/privatedns/tencentcloud_sweeper_test.go b/tencentcloud/services/privatedns/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..75e4aa9c75 --- /dev/null +++ b/tencentcloud/services/privatedns/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package privatedns_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/project/tencentcloud_sweeper_test.go b/tencentcloud/services/project/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..1ade32d48c --- /dev/null +++ b/tencentcloud/services/project/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package project_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/pts/tencentcloud_sweeper_test.go b/tencentcloud/services/pts/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..ff78fddc12 --- /dev/null +++ b/tencentcloud/services/pts/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package pts_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/rum/tencentcloud_sweeper_test.go b/tencentcloud/services/rum/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..f66c9c9010 --- /dev/null +++ b/tencentcloud/services/rum/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package rum_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/scf/tencentcloud_sweeper_test.go b/tencentcloud/services/scf/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..0e0982140b --- /dev/null +++ b/tencentcloud/services/scf/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package scf_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/ses/tencentcloud_sweeper_test.go b/tencentcloud/services/ses/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..ccf08f4ec8 --- /dev/null +++ b/tencentcloud/services/ses/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package ses_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/sms/tencentcloud_sweeper_test.go b/tencentcloud/services/sms/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..131fe981e7 --- /dev/null +++ b/tencentcloud/services/sms/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package sms_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/sqlserver/tencentcloud_sweeper_test.go b/tencentcloud/services/sqlserver/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..7c38b79ba3 --- /dev/null +++ b/tencentcloud/services/sqlserver/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package sqlserver_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/ssl/tencentcloud_sweeper_test.go b/tencentcloud/services/ssl/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..7b134bc856 --- /dev/null +++ b/tencentcloud/services/ssl/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package ssl_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/ssm/tencentcloud_sweeper_test.go b/tencentcloud/services/ssm/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..0492a335e9 --- /dev/null +++ b/tencentcloud/services/ssm/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package ssm_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/sts/tencentcloud_sweeper_test.go b/tencentcloud/services/sts/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..92f0fd5c88 --- /dev/null +++ b/tencentcloud/services/sts/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package sts_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tag/tencentcloud_sweeper_test.go b/tencentcloud/services/tag/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..5cc685fdbd --- /dev/null +++ b/tencentcloud/services/tag/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tag_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tat/tencentcloud_sweeper_test.go b/tencentcloud/services/tat/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..78da06188d --- /dev/null +++ b/tencentcloud/services/tat/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tat_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tcaplusdb/tencentcloud_sweeper_test.go b/tencentcloud/services/tcaplusdb/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..8d4ef9fcff --- /dev/null +++ b/tencentcloud/services/tcaplusdb/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tcaplusdb_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tcm/tencentcloud_sweeper_test.go b/tencentcloud/services/tcm/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..129d528c5d --- /dev/null +++ b/tencentcloud/services/tcm/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tcm_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tcmg/tencentcloud_sweeper_test.go b/tencentcloud/services/tcmg/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..ba4da07a9a --- /dev/null +++ b/tencentcloud/services/tcmg/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tcmg_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tcmq/tencentcloud_sweeper_test.go b/tencentcloud/services/tcmq/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..cca6f40442 --- /dev/null +++ b/tencentcloud/services/tcmq/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tcmq_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tco/tencentcloud_sweeper_test.go b/tencentcloud/services/tco/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..ac9ba8acdd --- /dev/null +++ b/tencentcloud/services/tco/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tco_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tcr/tencentcloud_sweeper_test.go b/tencentcloud/services/tcr/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..87a4431070 --- /dev/null +++ b/tencentcloud/services/tcr/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tcr_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tdcpg/tencentcloud_sweeper_test.go b/tencentcloud/services/tdcpg/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..079a76f1f8 --- /dev/null +++ b/tencentcloud/services/tdcpg/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tdcpg_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tdmq/tencentcloud_sweeper_test.go b/tencentcloud/services/tdmq/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..5847f893de --- /dev/null +++ b/tencentcloud/services/tdmq/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tdmq_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tem/tencentcloud_sweeper_test.go b/tencentcloud/services/tem/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..55f52625a4 --- /dev/null +++ b/tencentcloud/services/tem/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tem_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/teo/tencentcloud_sweeper_test.go b/tencentcloud/services/teo/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..11fe3cd236 --- /dev/null +++ b/tencentcloud/services/teo/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package teo_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tke/tencentcloud_sweeper_test.go b/tencentcloud/services/tke/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..a9bb0451ae --- /dev/null +++ b/tencentcloud/services/tke/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tke_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tmp/tencentcloud_sweeper_test.go b/tencentcloud/services/tmp/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..bed54650f3 --- /dev/null +++ b/tencentcloud/services/tmp/tencentcloud_sweeper_test.go @@ -0,0 +1,12 @@ +package tmp_test + + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tpulsar/tencentcloud_sweeper_test.go b/tencentcloud/services/tpulsar/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..bb8173ee0b --- /dev/null +++ b/tencentcloud/services/tpulsar/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tpulsar_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/trabbit/tencentcloud_sweeper_test.go b/tencentcloud/services/trabbit/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..22612a2386 --- /dev/null +++ b/tencentcloud/services/trabbit/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package trabbit_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/trocket/tencentcloud_sweeper_test.go b/tencentcloud/services/trocket/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..de622a1bdd --- /dev/null +++ b/tencentcloud/services/trocket/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package trocket_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tse/tencentcloud_sweeper_test.go b/tencentcloud/services/tse/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..d8bd571080 --- /dev/null +++ b/tencentcloud/services/tse/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tse_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/tsf/tencentcloud_sweeper_test.go b/tencentcloud/services/tsf/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..4efd2389dd --- /dev/null +++ b/tencentcloud/services/tsf/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package tsf_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/vod/tencentcloud_sweeper_test.go b/tencentcloud/services/vod/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..c81e6628cb --- /dev/null +++ b/tencentcloud/services/vod/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package vod_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/vpc/tencentcloud_sweeper_test.go b/tencentcloud/services/vpc/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..954904485b --- /dev/null +++ b/tencentcloud/services/vpc/tencentcloud_sweeper_test.go @@ -0,0 +1,10 @@ +package vpc_test +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/vpn/tencentcloud_sweeper_test.go b/tencentcloud/services/vpn/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..141a8b5346 --- /dev/null +++ b/tencentcloud/services/vpn/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package vpn_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/waf/tencentcloud_sweeper_test.go b/tencentcloud/services/waf/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..942b2f7dc1 --- /dev/null +++ b/tencentcloud/services/waf/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package waf_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} diff --git a/tencentcloud/services/wedata/tencentcloud_sweeper_test.go b/tencentcloud/services/wedata/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..73d8ae9a2f --- /dev/null +++ b/tencentcloud/services/wedata/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +} From fc4784026478846b2e9afaec94ae8da633c0eea3 Mon Sep 17 00:00:00 2001 From: hellertang Date: Fri, 5 Jan 2024 20:31:58 +0800 Subject: [PATCH 2/2] fix fmt error --- tencentcloud/services/tmp/tencentcloud_sweeper_test.go | 1 - tencentcloud/services/vpc/tencentcloud_sweeper_test.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tencentcloud/services/tmp/tencentcloud_sweeper_test.go b/tencentcloud/services/tmp/tencentcloud_sweeper_test.go index bed54650f3..3de13baa18 100644 --- a/tencentcloud/services/tmp/tencentcloud_sweeper_test.go +++ b/tencentcloud/services/tmp/tencentcloud_sweeper_test.go @@ -1,6 +1,5 @@ package tmp_test - import ( "testing" diff --git a/tencentcloud/services/vpc/tencentcloud_sweeper_test.go b/tencentcloud/services/vpc/tencentcloud_sweeper_test.go index 954904485b..2813321235 100644 --- a/tencentcloud/services/vpc/tencentcloud_sweeper_test.go +++ b/tencentcloud/services/vpc/tencentcloud_sweeper_test.go @@ -1,4 +1,5 @@ package vpc_test + import ( "testing"