Skip to content

Commit bd83b46

Browse files
author
mikatong
committed
update
1 parent 4e45b02 commit bd83b46

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tencentcloud/services/cvm/resource_tc_reserved_instance_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
99
)
1010

11-
func TestAccTencentCloudReservedInstance(t *testing.T) {
11+
func TestAccTencentCloudReservedInstanceResource(t *testing.T) {
1212
t.Parallel()
1313
resource.Test(t, resource.TestCase{
1414
PreCheck: func() { tcacctest.AccPreCheck(t) },
@@ -17,7 +17,6 @@ func TestAccTencentCloudReservedInstance(t *testing.T) {
1717
{
1818
Config: testAccReservedInstance,
1919
Check: resource.ComposeTestCheckFunc(
20-
testAccCheckPlacementGroupExists("tencentcloud_reserved_instance.reserved_instance"),
2120
resource.TestCheckResourceAttr("tencentcloud_reserved_instance.reserved_instance", "config_id", "3ae825a8-bf6f-4c43-aa2c-c507c08fba92"),
2221
resource.TestCheckResourceAttr("tencentcloud_reserved_instance.reserved_instance", "instance_count", "1"),
2322
resource.TestCheckResourceAttr("tencentcloud_reserved_instance.reserved_instance", "reserved_instance_name", "test"),
@@ -27,9 +26,8 @@ func TestAccTencentCloudReservedInstance(t *testing.T) {
2726
),
2827
},
2928
{
30-
ResourceName: "tencentcloud_reserved_instance.reserved_instance",
31-
ImportState: true,
32-
ImportStateVerify: true,
29+
ResourceName: "tencentcloud_reserved_instance.reserved_instance",
30+
ImportState: true,
3331
},
3432
},
3533
})

0 commit comments

Comments
 (0)