From 068b1679f2f3cd8e2f1e7e7a297a1eefa8c37099 Mon Sep 17 00:00:00 2001 From: Gaspard Micol Date: Tue, 30 Apr 2024 17:20:40 -0400 Subject: [PATCH] [ignore] Generate with properties modifications (forgot to do go generate...) --- docs/data-sources/netflow_monitor_policy.md | 2 +- docs/resources/netflow_monitor_policy.md | 4 +-- .../aci_netflow_monitor_policy/data-source.tf | 2 +- .../resource-all-attributes.tf | 2 +- .../aci_netflow_monitor_policy/resource.tf | 2 +- gen/testvars/netflowMonitorPol.yaml | 6 ++-- ..._source_aci_netflow_monitor_policy_test.go | 6 ++-- ...esource_aci_netflow_monitor_policy_test.go | 28 +++++++++---------- 8 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/data-sources/netflow_monitor_policy.md b/docs/data-sources/netflow_monitor_policy.md index e8c50f58d..eb735c2b5 100644 --- a/docs/data-sources/netflow_monitor_policy.md +++ b/docs/data-sources/netflow_monitor_policy.md @@ -33,7 +33,7 @@ Data source for Netflow Monitor Policy data "aci_netflow_monitor_policy" "example_tenant" { parent_dn = aci_tenant.example.id - name = "test_name" + name = "netfow_monitor" } ``` diff --git a/docs/resources/netflow_monitor_policy.md b/docs/resources/netflow_monitor_policy.md index a935afffc..c4757b5f2 100644 --- a/docs/resources/netflow_monitor_policy.md +++ b/docs/resources/netflow_monitor_policy.md @@ -37,7 +37,7 @@ The configuration snippet below creates a Netflow Monitor Policy with only requi resource "aci_netflow_monitor_policy" "example_tenant" { parent_dn = aci_tenant.example.id - name = "test_name" + name = "netfow_monitor" } ``` @@ -51,7 +51,7 @@ resource "aci_netflow_monitor_policy" "full_example_tenant" { parent_dn = aci_tenant.example.id annotation = "annotation" description = "description" - name = "test_name" + name = "netfow_monitor" name_alias = "name_alias" owner_key = "owner_key" owner_tag = "owner_tag" diff --git a/examples/data-sources/aci_netflow_monitor_policy/data-source.tf b/examples/data-sources/aci_netflow_monitor_policy/data-source.tf index 1748f9754..3efd6e062 100644 --- a/examples/data-sources/aci_netflow_monitor_policy/data-source.tf +++ b/examples/data-sources/aci_netflow_monitor_policy/data-source.tf @@ -1,5 +1,5 @@ data "aci_netflow_monitor_policy" "example_tenant" { parent_dn = aci_tenant.example.id - name = "test_name" + name = "netfow_monitor" } diff --git a/examples/resources/aci_netflow_monitor_policy/resource-all-attributes.tf b/examples/resources/aci_netflow_monitor_policy/resource-all-attributes.tf index 2cfcbe60c..666d18090 100644 --- a/examples/resources/aci_netflow_monitor_policy/resource-all-attributes.tf +++ b/examples/resources/aci_netflow_monitor_policy/resource-all-attributes.tf @@ -3,7 +3,7 @@ resource "aci_netflow_monitor_policy" "full_example_tenant" { parent_dn = aci_tenant.example.id annotation = "annotation" description = "description" - name = "test_name" + name = "netfow_monitor" name_alias = "name_alias" owner_key = "owner_key" owner_tag = "owner_tag" diff --git a/examples/resources/aci_netflow_monitor_policy/resource.tf b/examples/resources/aci_netflow_monitor_policy/resource.tf index f3def7fae..333fe8654 100644 --- a/examples/resources/aci_netflow_monitor_policy/resource.tf +++ b/examples/resources/aci_netflow_monitor_policy/resource.tf @@ -1,5 +1,5 @@ resource "aci_netflow_monitor_policy" "example_tenant" { parent_dn = aci_tenant.example.id - name = "test_name" + name = "netfow_monitor" } diff --git a/gen/testvars/netflowMonitorPol.yaml b/gen/testvars/netflowMonitorPol.yaml index d8b39c067..a938ce5ce 100644 --- a/gen/testvars/netflowMonitorPol.yaml +++ b/gen/testvars/netflowMonitorPol.yaml @@ -10,13 +10,13 @@ default: owner_tag: "" datasource_non_existing: - name: "non_existing_name" + name: "netfow_monitor_non_existing" datasource_required: - name: "test_name" + name: "netfow_monitor" resource_required: - name: "test_name" + name: "netfow_monitor" all: annotation: "annotation" diff --git a/internal/provider/data_source_aci_netflow_monitor_policy_test.go b/internal/provider/data_source_aci_netflow_monitor_policy_test.go index a0b0dee68..7af9046b2 100644 --- a/internal/provider/data_source_aci_netflow_monitor_policy_test.go +++ b/internal/provider/data_source_aci_netflow_monitor_policy_test.go @@ -21,7 +21,7 @@ func TestAccDataSourceNetflowMonitorPolWithFvTenant(t *testing.T) { Config: testConfigNetflowMonitorPolDataSourceDependencyWithFvTenant, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.aci_netflow_monitor_policy.test", "name", "test_name"), + resource.TestCheckResourceAttr("data.aci_netflow_monitor_policy.test", "name", "netfow_monitor"), resource.TestCheckResourceAttr("data.aci_netflow_monitor_policy.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("data.aci_netflow_monitor_policy.test", "description", ""), resource.TestCheckResourceAttr("data.aci_netflow_monitor_policy.test", "name_alias", ""), @@ -40,7 +40,7 @@ func TestAccDataSourceNetflowMonitorPolWithFvTenant(t *testing.T) { const testConfigNetflowMonitorPolDataSourceDependencyWithFvTenant = testConfigNetflowMonitorPolMinDependencyWithFvTenant + ` data "aci_netflow_monitor_policy" "test" { parent_dn = aci_tenant.test.id - name = "test_name" + name = "netfow_monitor" depends_on = [aci_netflow_monitor_policy.test] } ` @@ -48,7 +48,7 @@ data "aci_netflow_monitor_policy" "test" { const testConfigNetflowMonitorPolNotExistingFvTenant = testConfigNetflowMonitorPolMinDependencyWithFvTenant + ` data "aci_netflow_monitor_policy" "test_non_existing" { parent_dn = aci_tenant.test.id - name = "non_existing_name" + name = "netfow_monitor_non_existing" depends_on = [aci_netflow_monitor_policy.test] } ` diff --git a/internal/provider/resource_aci_netflow_monitor_policy_test.go b/internal/provider/resource_aci_netflow_monitor_policy_test.go index 1a71ec497..d1cb27b6a 100644 --- a/internal/provider/resource_aci_netflow_monitor_policy_test.go +++ b/internal/provider/resource_aci_netflow_monitor_policy_test.go @@ -21,7 +21,7 @@ func TestAccResourceNetflowMonitorPolWithFvTenant(t *testing.T) { Config: testConfigNetflowMonitorPolMinDependencyWithFvTenant, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "test_name"), + resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "netfow_monitor"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "description", ""), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name_alias", ""), @@ -34,7 +34,7 @@ func TestAccResourceNetflowMonitorPolWithFvTenant(t *testing.T) { Config: testConfigNetflowMonitorPolAllDependencyWithFvTenant, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "test_name"), + resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "netfow_monitor"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "annotation", "annotation"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "description", "description"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name_alias", "name_alias"), @@ -47,7 +47,7 @@ func TestAccResourceNetflowMonitorPolWithFvTenant(t *testing.T) { Config: testConfigNetflowMonitorPolMinDependencyWithFvTenant, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "test_name"), + resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "netfow_monitor"), ), }, // Update with empty strings config or default value @@ -55,7 +55,7 @@ func TestAccResourceNetflowMonitorPolWithFvTenant(t *testing.T) { Config: testConfigNetflowMonitorPolResetDependencyWithFvTenant, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "test_name"), + resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "netfow_monitor"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "description", ""), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name_alias", ""), @@ -69,7 +69,7 @@ func TestAccResourceNetflowMonitorPolWithFvTenant(t *testing.T) { ImportState: true, ImportStateVerify: true, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "test_name"), + resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "netfow_monitor"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "description", ""), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name_alias", ""), @@ -82,7 +82,7 @@ func TestAccResourceNetflowMonitorPolWithFvTenant(t *testing.T) { Config: testConfigNetflowMonitorPolChildrenDependencyWithFvTenant, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "test_name"), + resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "netfow_monitor"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "description", ""), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name_alias", ""), @@ -110,7 +110,7 @@ func TestAccResourceNetflowMonitorPolWithFvTenant(t *testing.T) { ImportState: true, ImportStateVerify: true, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "test_name"), + resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name", "netfow_monitor"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "description", ""), resource.TestCheckResourceAttr("aci_netflow_monitor_policy.test", "name_alias", ""), @@ -192,14 +192,14 @@ func TestAccResourceNetflowMonitorPolWithFvTenant(t *testing.T) { const testConfigNetflowMonitorPolMinDependencyWithFvTenant = testConfigFvTenantMin + ` resource "aci_netflow_monitor_policy" "test" { parent_dn = aci_tenant.test.id - name = "test_name" + name = "netfow_monitor" } ` const testConfigNetflowMonitorPolAllDependencyWithFvTenant = testConfigFvTenantMin + ` resource "aci_netflow_monitor_policy" "test" { parent_dn = aci_tenant.test.id - name = "test_name" + name = "netfow_monitor" annotation = "annotation" description = "description" name_alias = "name_alias" @@ -211,7 +211,7 @@ resource "aci_netflow_monitor_policy" "test" { const testConfigNetflowMonitorPolResetDependencyWithFvTenant = testConfigFvTenantMin + ` resource "aci_netflow_monitor_policy" "test" { parent_dn = aci_tenant.test.id - name = "test_name" + name = "netfow_monitor" annotation = "orchestrator:terraform" description = "" name_alias = "" @@ -222,7 +222,7 @@ resource "aci_netflow_monitor_policy" "test" { const testConfigNetflowMonitorPolChildrenDependencyWithFvTenant = testConfigFvTenantMin + ` resource "aci_netflow_monitor_policy" "test" { parent_dn = aci_tenant.test.id - name = "test_name" + name = "netfow_monitor" annotations = [ { key = "key_0" @@ -265,14 +265,14 @@ resource "aci_netflow_monitor_policy" "test" { const testConfigNetflowMonitorPolChildrenRemoveFromConfigDependencyWithFvTenant = testConfigFvTenantMin + ` resource "aci_netflow_monitor_policy" "test" { parent_dn = aci_tenant.test.id - name = "test_name" + name = "netfow_monitor" } ` const testConfigNetflowMonitorPolChildrenRemoveOneDependencyWithFvTenant = testConfigFvTenantMin + ` resource "aci_netflow_monitor_policy" "test" { parent_dn = aci_tenant.test.id - name = "test_name" + name = "netfow_monitor" annotations = [ { key = "key_1" @@ -298,7 +298,7 @@ resource "aci_netflow_monitor_policy" "test" { const testConfigNetflowMonitorPolChildrenRemoveAllDependencyWithFvTenant = testConfigFvTenantMin + ` resource "aci_netflow_monitor_policy" "test" { parent_dn = aci_tenant.test.id - name = "test_name" + name = "netfow_monitor" annotations = [] relation_to_netflow_exporters = [] relation_to_netflow_record = []