diff --git a/zia/common/testing/variable/variable.go b/zia/common/testing/variable/variable.go index 3650e122..25633ff7 100644 --- a/zia/common/testing/variable/variable.go +++ b/zia/common/testing/variable/variable.go @@ -92,6 +92,7 @@ const ( DLPWebRuleDesc = "this is an acceptance test" DLPRuleResourceAction = "ALLOW" DLPRuleResourceState = "ENABLED" + DLPRuleOrder = 1 DLPRuleContentInspection = false DLPMatchOnly = false DLPOCREnabled = false diff --git a/zia/data_source_zia_dlp_web_rules_test.go b/zia/data_source_zia_dlp_web_rules_test.go index 5377e9a7..7ec2ba6f 100644 --- a/zia/data_source_zia_dlp_web_rules_test.go +++ b/zia/data_source_zia_dlp_web_rules_test.go @@ -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"), diff --git a/zia/resource_zia_dlp_web_rules_test.go b/zia/resource_zia_dlp_web_rules_test.go index 2c341331..caf8ad41 100644 --- a/zia/resource_zia_dlp_web_rules_test.go +++ b/zia/resource_zia_dlp_web_rules_test.go @@ -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 @@ -216,6 +216,7 @@ data "%s" "%s" { description, action, state, + variable.DLPRuleOrder, // data source variables resourcetype.DLPWebRules,