8
8
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
9
9
)
10
10
11
- func TestAccTencentCloudReservedInstance (t * testing.T ) {
11
+ func TestAccTencentCloudReservedInstanceResource (t * testing.T ) {
12
12
t .Parallel ()
13
13
resource .Test (t , resource.TestCase {
14
14
PreCheck : func () { tcacctest .AccPreCheck (t ) },
@@ -17,7 +17,6 @@ func TestAccTencentCloudReservedInstance(t *testing.T) {
17
17
{
18
18
Config : testAccReservedInstance ,
19
19
Check : resource .ComposeTestCheckFunc (
20
- testAccCheckPlacementGroupExists ("tencentcloud_reserved_instance.reserved_instance" ),
21
20
resource .TestCheckResourceAttr ("tencentcloud_reserved_instance.reserved_instance" , "config_id" , "3ae825a8-bf6f-4c43-aa2c-c507c08fba92" ),
22
21
resource .TestCheckResourceAttr ("tencentcloud_reserved_instance.reserved_instance" , "instance_count" , "1" ),
23
22
resource .TestCheckResourceAttr ("tencentcloud_reserved_instance.reserved_instance" , "reserved_instance_name" , "test" ),
@@ -27,9 +26,8 @@ func TestAccTencentCloudReservedInstance(t *testing.T) {
27
26
),
28
27
},
29
28
{
30
- ResourceName : "tencentcloud_reserved_instance.reserved_instance" ,
31
- ImportState : true ,
32
- ImportStateVerify : true ,
29
+ ResourceName : "tencentcloud_reserved_instance.reserved_instance" ,
30
+ ImportState : true ,
33
31
},
34
32
},
35
33
})
0 commit comments