Skip to content

refactor: migrate some code to sub package #2424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 30 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4323669
refactor: migrate package tencentcloud/services/dayu and tencentcloud…
yhlooo Dec 20, 2023
10b731d
refactor: migrate package tencentcloud/services/dbbrain
yhlooo Dec 20, 2023
4cd8f0d
refactor: migrate package tencentcloud/services/dc
yhlooo Dec 20, 2023
26243d2
refactor: migrate package tencentcloud/services/dcdb
yhlooo Dec 20, 2023
0cffda1
refactor: migrate package tencentcloud/services/dcg
yhlooo Dec 20, 2023
f0d05c5
refactor: migrate package tencentcloud/services/dlc
yhlooo Dec 21, 2023
753663a
refactor: migrate package tencentcloud/services/dnspod
yhlooo Dec 21, 2023
3fb3ba0
refactor: migrate package tencentcloud/services/domain
yhlooo Dec 21, 2023
8728df9
refactor: migrate package tencentcloud/services/dts
yhlooo Dec 21, 2023
e24f7ae
refactor: migrate package tencentcloud/services/eb
yhlooo Dec 21, 2023
85c3631
refactor: migrate package tencentcloud/services/emr
yhlooo Dec 21, 2023
8df2f8b
refactor: migrate package tencentcloud/services/es
yhlooo Dec 21, 2023
b406034
refactor: migrate package tencentcloud/services/fl
yhlooo Dec 21, 2023
c1706c8
refactor: migrate package tencentcloud/services/gaap
yhlooo Dec 21, 2023
5181025
refactor: migrate package tencentcloud/services/kms
yhlooo Dec 21, 2023
8de26b4
refactor: migrate package tencentcloud/services/lighthouse
yhlooo Dec 21, 2023
43aba71
refactor: migrate package tencentcloud/services/mariadb
yhlooo Dec 21, 2023
4609522
refactor: migrate package tencentcloud/services/mdl
yhlooo Dec 21, 2023
bca5a51
refactor: migrate package tencentcloud/services/mongodb
yhlooo Dec 21, 2023
8f7ae25
refactor: migrate package tencentcloud/services/monitor
yhlooo Dec 21, 2023
171eb0c
refactor: migrate package tencentcloud/services/mps
yhlooo Dec 21, 2023
99427af
refactor: migrate package tencentcloud/services/oceanus
yhlooo Dec 21, 2023
8d0b7ea
refactor: migrate package tencentcloud/services/pls
yhlooo Dec 21, 2023
6e60387
refactor: migrate package tencentcloud/services/postgresql
yhlooo Dec 21, 2023
ec3fa1a
refactor: migrate package tencentcloud/services/privatedns
yhlooo Dec 21, 2023
74671b0
refactor: migrate package tencentcloud/services/project
yhlooo Dec 21, 2023
139ca63
refactor: migrate package tencentcloud/services/pts
yhlooo Dec 21, 2023
541e2e4
refactor: migrate package tencentcloud/services/rum
yhlooo Dec 22, 2023
4640fe7
fix: replace tccommon. tcacctest. in string
yhlooo Dec 22, 2023
f4c1107
style: fmt
yhlooo Dec 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 0 additions & 28 deletions tencentcloud/data_source_tc_lighthouse_disks_test.go

This file was deleted.

28 changes: 0 additions & 28 deletions tencentcloud/data_source_tc_lighthouse_instance_blueprint_test.go

This file was deleted.

28 changes: 0 additions & 28 deletions tencentcloud/data_source_tc_lighthouse_instance_disk_num_test.go

This file was deleted.

27 changes: 0 additions & 27 deletions tencentcloud/data_source_tc_lighthouse_instance_vnc_url_test.go

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
package tencentcloud

import (
"context"
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common"
)

var testDataSqlserverAccountDBAttachmentsName = "data.tencentcloud_sqlserver_account_db_attachments.test"
Expand All @@ -29,6 +34,26 @@ func TestAccDataSourceTencentCloudSqlserverAccountDBAttachments_basic(t *testing
})
}

func testAccCheckLBDestroy(s *terraform.State) error {
logId := tccommon.GetLogId(tccommon.ContextNil)
ctx := context.WithValue(context.TODO(), tccommon.LogIdKey, logId)

clbService := ClbService{
client: testAccProvider.Meta().(tccommon.ProviderMeta).GetAPIV3Conn(),
}
for _, rs := range s.RootModule().Resources {
if rs.Type != "tencentcloud_lb" {
continue
}

_, err := clbService.DescribeLoadBalancerById(ctx, rs.Primary.ID)
if err == nil {
return fmt.Errorf("clb instance still exists: %s", rs.Primary.ID)
}
}
return nil
}

const testAccSQLServerAttachDataDB = "test_db_attachment"

const testAccTencentCloudDataSqlserverAccountDBAttachmentsBasic = CommonPresetSQLServerAccount + `
Expand Down
Loading