Skip to content

Commit ddfaa6a

Browse files
gitmknanonymous
andauthored
fix: modify unit (#1544)
* fix: modify unit * fix: modify pts unit --------- Co-authored-by: anonymous <anonymous@mail.org>
1 parent fe00c72 commit ddfaa6a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

tencentcloud/resource_tc_pts_project_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ func TestAccTencentCloudPtsProjectResource_basic(t *testing.T) {
3030
),
3131
},
3232
{
33-
ResourceName: "tencentcloud_pts_project.project",
34-
ImportState: true,
35-
ImportStateVerify: true,
33+
ResourceName: "tencentcloud_pts_project.project",
34+
ImportState: true,
35+
ImportStateVerify: true,
36+
ImportStateVerifyIgnore: []string{"updated_at"},
3637
},
3738
},
3839
})

tencentcloud/resource_tc_tem_app_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func testAccCheckTemAppConfigDestroy(s *terraform.State) error {
6060
res, err := service.DescribeTemAppConfig(ctx, environmentId, name)
6161
if err != nil {
6262
if sdkErr, ok := err.(*errors.TencentCloudSDKError); ok {
63-
if sdkErr.Code == "InternalError.DescribeConfigDataError" {
63+
if sdkErr.Code == "ResourceNotFound.ConfigDataNotFound" {
6464
return nil
6565
}
6666
}

tencentcloud/resource_tc_tem_log_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func testAccCheckTemLogConfigDestroy(s *terraform.State) error {
6868
if !ok {
6969
return err
7070
}
71-
if ee.Code == "InternalError.DefaultInternalError" {
71+
if ee.Code == "ResourceNotFound.LogConfigNotFound" {
7272
return nil
7373
}
7474
return err

0 commit comments

Comments
 (0)