From 9dec10fc0813d1f886a2c7adb9c177cd45943dab Mon Sep 17 00:00:00 2001 From: Jonathan E <119786589+jonathan-el@users.noreply.github.com> Date: Mon, 11 Mar 2024 11:04:50 +0200 Subject: [PATCH] Fix delivery rule test (#396) --- .../resource_delivery_rules_configuration_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/incapsula/resource_delivery_rules_configuration_test.go b/incapsula/resource_delivery_rules_configuration_test.go index ebb862aa..07cb2f39 100644 --- a/incapsula/resource_delivery_rules_configuration_test.go +++ b/incapsula/resource_delivery_rules_configuration_test.go @@ -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" @@ -188,12 +188,12 @@ 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" @@ -201,7 +201,7 @@ resource "%s" "%s" { enabled = "true" } rule { - rule_name = "%s" + rule_name = "%s" filter = "ASN == 3" header_name = "abc" from = "header1"