Skip to content

Commit

Permalink
test(secmaster): fix secmaster test case (#6139)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoping-12345 authored Jan 6, 2025
1 parent f9569c7 commit 3bd2841
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 3bd2841

Please sign in to comment.