Skip to content

Commit fcbe0ee

Browse files
author
“guojunchu”
committed
add tencentcloud_vpc_acl_attachment
1 parent c1b28db commit fcbe0ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tencentcloud/resource_tc_vpc_acl_attachment_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func testVpcAclAttachmentDestroy(s *terraform.State) error {
3838
}
3939
err := service.DescribeByAclId(ctx, rs.Primary.ID)
4040
if err == nil {
41-
return fmt.Errorf("[TECENT_TERRAFORM_CHECK][][Destroy] check: acl attachment still exists: %s", rs.Primary.ID)
41+
return fmt.Errorf("[TECENT_TERRAFORM_CHECK][ACL attachment][Destroy] check: acl attachment still exists: %s", rs.Primary.ID)
4242
}
4343
}
4444
return nil
@@ -52,14 +52,14 @@ func testVpcAclAttachmentExists(n string) resource.TestCheckFunc {
5252

5353
rs, ok := s.RootModule().Resources[n]
5454
if !ok {
55-
return fmt.Errorf("[TECENT_TERRAFORM_CHECK][][Exists] check: %s is not found", n)
55+
return fmt.Errorf("[TECENT_TERRAFORM_CHECK][ACL attachment][Exists] check: %s is not found", n)
5656
}
5757
if rs.Primary.ID == "" {
58-
return fmt.Errorf("[TECENT_TERRAFORM_CHECK][][Exists] check: id is not set")
58+
return fmt.Errorf("[TECENT_TERRAFORM_CHECK][ACL attachment][Exists] check: id is not set")
5959
}
6060
err := service.DescribeByAclId(ctx, rs.Primary.ID)
6161
if err != nil {
62-
return fmt.Errorf("[TECENT_TERRAFORM_CHECK][][Destroy] check: still exists: %s", rs.Primary.ID)
62+
return fmt.Errorf("[TECENT_TERRAFORM_CHECK][ACL attachment][Exists] check: still exists: %s", rs.Primary.ID)
6363
}
6464
return nil
6565
}

0 commit comments

Comments
 (0)