diff --git a/huaweicloud/services/acceptance/secmaster/resource_huaweicloud_secmaster_playbook_enable_test.go b/huaweicloud/services/acceptance/secmaster/resource_huaweicloud_secmaster_playbook_enable_test.go index d9774604a6..add4d9e91a 100644 --- a/huaweicloud/services/acceptance/secmaster/resource_huaweicloud_secmaster_playbook_enable_test.go +++ b/huaweicloud/services/acceptance/secmaster/resource_huaweicloud_secmaster_playbook_enable_test.go @@ -80,6 +80,12 @@ resource "huaweicloud_secmaster_playbook_version_action" "submit_version" { status = "APPROVING" depends_on = [huaweicloud_secmaster_playbook_action.test] + + lifecycle { + ignore_changes = [ + status, enabled, + ] + } } resource "huaweicloud_secmaster_playbook_approval" "test" { diff --git a/huaweicloud/services/acceptance/secmaster/resource_huaweicloud_secmaster_playbook_version_test.go b/huaweicloud/services/acceptance/secmaster/resource_huaweicloud_secmaster_playbook_version_test.go index f484e1548e..cef825a1ee 100644 --- a/huaweicloud/services/acceptance/secmaster/resource_huaweicloud_secmaster_playbook_version_test.go +++ b/huaweicloud/services/acceptance/secmaster/resource_huaweicloud_secmaster_playbook_version_test.go @@ -89,14 +89,17 @@ func testPlaybookVersion_basic(name string) string { %[1]s data "huaweicloud_secmaster_data_classes" "test" { - workspace_id = "%[2]s" + workspace_id = "%[2]s" + business_code = "Policy" } resource "huaweicloud_secmaster_playbook_version" "test" { - workspace_id = "%[2]s" - playbook_id = huaweicloud_secmaster_playbook.test.id - dataclass_id = data.huaweicloud_secmaster_data_classes.test.data_classes[0].id - description = "created by terraform" + workspace_id = "%[2]s" + playbook_id = huaweicloud_secmaster_playbook.test.id + dataclass_id = data.huaweicloud_secmaster_data_classes.test.data_classes[0].id + description = "created by terraform" + dataobject_create = true + trigger_type = "EVENT" } data "huaweicloud_secmaster_workflows" "test" {