From 7a93223cdd3364215bab29d973b5ec69c56dbf88 Mon Sep 17 00:00:00 2001 From: SevenEarth <45937856+SevenEarth@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:32:47 +0800 Subject: [PATCH] fix(cvm): [123456789] `tencentcloud_instance` update unit test (#3019) * add * add * add --- .changelog/3019.txt | 3 +++ tencentcloud/services/cvm/resource_tc_instance_test.go | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changelog/3019.txt 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] }