diff --git a/.changelog/3019.txt b/.changelog/3019.txt new file mode 100644 index 0000000000..5e39e45126 --- /dev/null +++ b/.changelog/3019.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_instance: update unit test +``` \ No newline at end of file diff --git a/tencentcloud/services/cvm/resource_tc_instance_test.go b/tencentcloud/services/cvm/resource_tc_instance_test.go index 29ec585a5e..b0c470ee66 100644 --- a/tencentcloud/services/cvm/resource_tc_instance_test.go +++ b/tencentcloud/services/cvm/resource_tc_instance_test.go @@ -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"}, }, }, }) @@ -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] @@ -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] @@ -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] } @@ -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] }