From 43511550d605eb3cd31c552dffc1cff100236abd Mon Sep 17 00:00:00 2001 From: danischm Date: Fri, 22 Dec 2023 13:35:49 +0100 Subject: [PATCH] Fix route policy test --- docs/resources/route_policy_definition.md | 1 - examples/resources/sdwan_route_policy_definition/resource.tf | 1 - gen/definitions/generic/route_policy_definition.yaml | 1 + .../provider/data_source_sdwan_route_policy_definition_test.go | 2 -- .../provider/resource_sdwan_route_policy_definition_test.go | 2 -- 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/resources/route_policy_definition.md b/docs/resources/route_policy_definition.md index 58f40381..68b2290c 100644 --- a/docs/resources/route_policy_definition.md +++ b/docs/resources/route_policy_definition.md @@ -34,7 +34,6 @@ resource "sdwan_route_policy_definition" "example" { type = "aggregator" aggregator = 10 aggregator_ip_address = "10.1.2.3" - next_hop = "10.1.1.5" } ] } diff --git a/examples/resources/sdwan_route_policy_definition/resource.tf b/examples/resources/sdwan_route_policy_definition/resource.tf index bc808a20..6b9ce0ab 100644 --- a/examples/resources/sdwan_route_policy_definition/resource.tf +++ b/examples/resources/sdwan_route_policy_definition/resource.tf @@ -19,7 +19,6 @@ resource "sdwan_route_policy_definition" "example" { type = "aggregator" aggregator = 10 aggregator_ip_address = "10.1.2.3" - next_hop = "10.1.1.5" } ] } diff --git a/gen/definitions/generic/route_policy_definition.yaml b/gen/definitions/generic/route_policy_definition.yaml index 5b2ecb93..adad4636 100644 --- a/gen/definitions/generic/route_policy_definition.yaml +++ b/gen/definitions/generic/route_policy_definition.yaml @@ -408,6 +408,7 @@ attributes: type: String description: Next hop IP example: 10.1.1.5 + exclude_test: true - model_name: value tf_name: omp_tag conditional_attribute: diff --git a/internal/provider/data_source_sdwan_route_policy_definition_test.go b/internal/provider/data_source_sdwan_route_policy_definition_test.go index 5e9e6b8d..2bf4591d 100644 --- a/internal/provider/data_source_sdwan_route_policy_definition_test.go +++ b/internal/provider/data_source_sdwan_route_policy_definition_test.go @@ -45,7 +45,6 @@ func TestAccDataSourceSdwanRoutePolicyDefinition(t *testing.T) { resource.TestCheckResourceAttr("data.sdwan_route_policy_definition.test", "sequences.0.action_entries.0.type", "aggregator"), resource.TestCheckResourceAttr("data.sdwan_route_policy_definition.test", "sequences.0.action_entries.0.aggregator", "10"), resource.TestCheckResourceAttr("data.sdwan_route_policy_definition.test", "sequences.0.action_entries.0.aggregator_ip_address", "10.1.2.3"), - resource.TestCheckResourceAttr("data.sdwan_route_policy_definition.test", "sequences.0.action_entries.0.next_hop", "10.1.1.5"), ), }, }, @@ -71,7 +70,6 @@ resource "sdwan_route_policy_definition" "test" { type = "aggregator" aggregator = 10 aggregator_ip_address = "10.1.2.3" - next_hop = "10.1.1.5" }] }] } diff --git a/internal/provider/resource_sdwan_route_policy_definition_test.go b/internal/provider/resource_sdwan_route_policy_definition_test.go index 7448a2d2..0267f47a 100644 --- a/internal/provider/resource_sdwan_route_policy_definition_test.go +++ b/internal/provider/resource_sdwan_route_policy_definition_test.go @@ -45,7 +45,6 @@ func TestAccSdwanRoutePolicyDefinition(t *testing.T) { resource.TestCheckResourceAttr("sdwan_route_policy_definition.test", "sequences.0.action_entries.0.type", "aggregator"), resource.TestCheckResourceAttr("sdwan_route_policy_definition.test", "sequences.0.action_entries.0.aggregator", "10"), resource.TestCheckResourceAttr("sdwan_route_policy_definition.test", "sequences.0.action_entries.0.aggregator_ip_address", "10.1.2.3"), - resource.TestCheckResourceAttr("sdwan_route_policy_definition.test", "sequences.0.action_entries.0.next_hop", "10.1.1.5"), ), }, }, @@ -72,7 +71,6 @@ resource "sdwan_route_policy_definition" "test" { type = "aggregator" aggregator = 10 aggregator_ip_address = "10.1.2.3" - next_hop = "10.1.1.5" }] }] }