Skip to content

Commit

Permalink
fix(cvm): [123456789] tencentcloud_instance update unit test (#3019)
Browse files Browse the repository at this point in the history
* add

* add

* add
  • Loading branch information
SevenEarth authored Dec 16, 2024
1 parent 0e52600 commit 7a93223
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/3019.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_instance: update unit test
```
6 changes: 5 additions & 1 deletion tencentcloud/services/cvm/resource_tc_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestAccTencentCloudInstanceResourceBasic(t *testing.T) {
{
ResourceName: "tencentcloud_instance.cvm_basic",
ImportState: true,
ImportStateVerifyIgnore: []string{"disable_monitor_service", "disable_security_service", "hostname", "password", "force_delete"},
ImportStateVerifyIgnore: []string{"disable_monitor_service", "disable_security_service", "disable_automation_service", "hostname", "password", "force_delete"},
},
},
})
Expand Down Expand Up @@ -539,6 +539,7 @@ resource "tencentcloud_instance" "foo" {
delete_with_instance = true
}
disable_security_service = true
disable_automation_service = true
lifecycle {
ignore_changes = [instance_type]
Expand Down Expand Up @@ -591,6 +592,7 @@ resource "tencentcloud_instance" "foo" {
data_disk_type = "CLOUD_PREMIUM"
}
disable_security_service = true
disable_automation_service = true
lifecycle {
ignore_changes = [instance_type]
Expand Down Expand Up @@ -2140,6 +2142,7 @@ resource "tencentcloud_instance" "foo" {
disable_security_service = true
disable_monitor_service = true
disable_automation_service = true
lifecycle {
ignore_changes = [instance_type]
}
Expand Down Expand Up @@ -2240,6 +2243,7 @@ resource "tencentcloud_instance" "foo" {
disable_security_service = true
disable_monitor_service = true
disable_automation_service = true
lifecycle {
ignore_changes = [instance_type]
}
Expand Down

0 comments on commit 7a93223

Please sign in to comment.