Skip to content

Commit

Permalink
testcase: fix testcase for ecs instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenHanZhang committed Feb 16, 2024
1 parent 2e611bf commit 4ab3e50
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions alicloud/resource_alicloud_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1309,8 +1309,8 @@ func TestAccAliCloudECSInstancePrepaidAll(t *testing.T) {
}),
Check: resource.ComposeTestCheckFunc(
testAccCheck(map[string]string{
"renewal_status": "NotRenewal",
"auto_renew_period": "0",
"renewal_status": "NotRenewal",
// "auto_renew_period": "0",
}),
),
},
Expand All @@ -1324,6 +1324,16 @@ func TestAccAliCloudECSInstancePrepaidAll(t *testing.T) {
}),
),
},
{
Config: testAccConfig(map[string]interface{}{
"force_delete": "false",
}),
Check: resource.ComposeTestCheckFunc(
testAccCheck(map[string]string{
"force_delete": "false",
}),
),
},
{
Config: testAccConfig(map[string]interface{}{
"force_delete": "true",
Expand Down

0 comments on commit 4ab3e50

Please sign in to comment.