From 70b04786bd7ddd5a1fef4c98ee2a9c5eebb64473 Mon Sep 17 00:00:00 2001 From: danischm Date: Tue, 19 Dec 2023 19:03:37 +0100 Subject: [PATCH] Fix localized policy test --- gen/definitions/generic/localized_policy.yaml | 4 ++-- internal/provider/data_source_sdwan_localized_policy_test.go | 4 ++-- internal/provider/resource_sdwan_localized_policy_test.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gen/definitions/generic/localized_policy.yaml b/gen/definitions/generic/localized_policy.yaml index 4d13f931..d4b3bc0c 100644 --- a/gen/definitions/generic/localized_policy.yaml +++ b/gen/definitions/generic/localized_policy.yaml @@ -107,7 +107,7 @@ attributes: mandatory: true description: Policy definition ID example: 2081c2f4-3f9f-4fee-8078-dcc8904e368d - test_value: sdwan_acl_policy_definition.test.id + test_value: sdwan_ipv4_acl_policy_definition.test.id - tf_name: version tf_only: true type: Version @@ -121,7 +121,7 @@ attributes: example: acl test_prerequisites: | - resource "sdwan_acl_policy_definition" "test" { + resource "sdwan_ipv4_acl_policy_definition" "test" { name = "TF_TEST" description = "Terraform test" default_action = "drop" diff --git a/internal/provider/data_source_sdwan_localized_policy_test.go b/internal/provider/data_source_sdwan_localized_policy_test.go index 66c0c663..076f2879 100644 --- a/internal/provider/data_source_sdwan_localized_policy_test.go +++ b/internal/provider/data_source_sdwan_localized_policy_test.go @@ -53,7 +53,7 @@ func TestAccDataSourceSdwanLocalizedPolicy(t *testing.T) { } const testAccDataSourceSdwanLocalizedPolicyConfig = ` -resource "sdwan_acl_policy_definition" "test" { +resource "sdwan_ipv4_acl_policy_definition" "test" { name = "TF_TEST" description = "Terraform test" default_action = "drop" @@ -98,7 +98,7 @@ resource "sdwan_localized_policy" "test" { ipv4_visibility_cache_entries = 1000 ipv6_visibility_cache_entries = 1000 definitions = [{ - id = sdwan_acl_policy_definition.test.id + id = sdwan_ipv4_acl_policy_definition.test.id type = "acl" }] } diff --git a/internal/provider/resource_sdwan_localized_policy_test.go b/internal/provider/resource_sdwan_localized_policy_test.go index 240d741e..769316ee 100644 --- a/internal/provider/resource_sdwan_localized_policy_test.go +++ b/internal/provider/resource_sdwan_localized_policy_test.go @@ -53,7 +53,7 @@ func TestAccSdwanLocalizedPolicy(t *testing.T) { } const testAccSdwanLocalizedPolicyConfig = ` -resource "sdwan_acl_policy_definition" "test" { +resource "sdwan_ipv4_acl_policy_definition" "test" { name = "TF_TEST" description = "Terraform test" default_action = "drop" @@ -99,7 +99,7 @@ resource "sdwan_localized_policy" "test" { ipv4_visibility_cache_entries = 1000 ipv6_visibility_cache_entries = 1000 definitions = [{ - id = sdwan_acl_policy_definition.test.id + id = sdwan_ipv4_acl_policy_definition.test.id type = "acl" }] }