Skip to content

Commit

Permalink
Fix delivery rule test (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-el authored Mar 11, 2024
1 parent 49d48fa commit 9dec10f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions incapsula/resource_delivery_rules_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func testCheckIncapsulaDeliveryRuleExists(name string, numRules int) resource.Te
func testAccCheckIncapsulaDeliveryRedirectRuleConfigBasic(t *testing.T) string {
return testAccCheckIncapsulaSiteConfigBasic(GenerateTestDomain(t)) + fmt.Sprintf(`
resource "%s" "%s" {
category = "%s"
site_id = %s.id
category = "%s"
rule {
rule_name = "%s"
filter = "ASN == 1"
Expand All @@ -188,20 +188,20 @@ resource "%s" "%s" {
func testAccCheckIncapsulaDeliveryRewriteRuleConfigBasic(t *testing.T) string {
return testAccCheckIncapsulaSiteConfigBasic(GenerateTestDomain(t)) + fmt.Sprintf(`
resource "%s" "%s" {
category = "%s"
site_id = %s.id
category = "%s"
rule {
rule_name = "%s"
rule_name = "%s"
filter = "ASN == 2"
cookie_name = "cookie_1"
cookie_name = "cookie_1"
from = "cookie1"
to = "cookie2"
add_if_missing = "false"
action = "RULE_ACTION_REWRITE_COOKIE"
enabled = "true"
}
rule {
rule_name = "%s"
rule_name = "%s"
filter = "ASN == 3"
header_name = "abc"
from = "header1"
Expand Down

0 comments on commit 9dec10f

Please sign in to comment.