diff --git a/tencentcloud/connectivity/client.go b/tencentcloud/connectivity/client.go index 57f136134e..4c5744bc56 100644 --- a/tencentcloud/connectivity/client.go +++ b/tencentcloud/connectivity/client.go @@ -1387,8 +1387,8 @@ func (me *TencentCloudClient) UseCsipClient() *csip.Client { cpf := me.NewClientProfile(300) cpf.Language = "zh-CN" - me.cdwpgConn, _ = cdwpg.NewClient(me.Credential, me.Region, cpf) - me.cdwpgConn.WithHttpTransport(&LogRoundTripper{}) + me.csipConn, _ = csip.NewClient(me.Credential, me.Region, cpf) + me.csipConn.WithHttpTransport(&LogRoundTripper{}) return me.csipConn } diff --git a/tencentcloud/services/csip/service_tencentcloud_csip.go b/tencentcloud/services/csip/service_tencentcloud_csip.go index 9316a3c9f5..e58889c662 100644 --- a/tencentcloud/services/csip/service_tencentcloud_csip.go +++ b/tencentcloud/services/csip/service_tencentcloud_csip.go @@ -11,6 +11,10 @@ import ( "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit" ) +func NewCsipService(client *connectivity.TencentCloudClient) CsipService { + return CsipService{client: client} +} + type CsipService struct { client *connectivity.TencentCloudClient } diff --git a/tencentcloud/services/csip/tencentcloud_sweeper_test.go b/tencentcloud/services/csip/tencentcloud_sweeper_test.go new file mode 100644 index 0000000000..0ac66088d6 --- /dev/null +++ b/tencentcloud/services/csip/tencentcloud_sweeper_test.go @@ -0,0 +1,11 @@ +package csip_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestMain(m *testing.M) { + resource.TestMain(m) +}