Skip to content

Commit

Permalink
fix: dlp rule test
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Aug 2, 2023
1 parent 8372f59 commit 904b75b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions zia/common/testing/variable/variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const (
DLPWebRuleDesc = "this is an acceptance test"
DLPRuleResourceAction = "ALLOW"
DLPRuleResourceState = "ENABLED"
DLPRuleOrder = 1
DLPRuleContentInspection = false
DLPMatchOnly = false
DLPOCREnabled = false
Expand Down
2 changes: 1 addition & 1 deletion zia/data_source_zia_dlp_web_rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestAccDataSourceDlpWebRules_Basic(t *testing.T) {
CheckDestroy: testAccCheckDlpWebRulesDestroy,
Steps: []resource.TestStep{
{
Config: testAccCheckDlpWebRulesConfigure(resourceTypeAndName, generatedName, variable.FWRuleResourceDescription, variable.FWRuleResourceAction, variable.FWRuleResourceState),
Config: testAccCheckDlpWebRulesConfigure(resourceTypeAndName, generatedName, variable.DLPWebRuleDesc, variable.DLPRuleResourceAction, variable.DLPRuleResourceState),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrPair(dataSourceTypeAndName, "id", resourceTypeAndName, "id"),
resource.TestCheckResourceAttrPair(dataSourceTypeAndName, "name", resourceTypeAndName, "name"),
Expand Down
3 changes: 2 additions & 1 deletion zia/resource_zia_dlp_web_rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ resource "%s" "%s" {
description = "%s"
action = "%s"
state = "%s"
order = 1
order = "%d"
rank = 7
protocols = ["FTP_RULE", "HTTPS_RULE", "HTTP_RULE"]
without_content_inspection = false
Expand Down Expand Up @@ -216,6 +216,7 @@ data "%s" "%s" {
description,
action,
state,
variable.DLPRuleOrder,

// data source variables
resourcetype.DLPWebRules,
Expand Down

0 comments on commit 904b75b

Please sign in to comment.