Skip to content

Commit

Permalink
[ignore] add test case for creation of bd/epg/esg with legacy attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
akinross committed Feb 3, 2025
1 parent c3084aa commit 31c4cd5
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gen/templates/resource_test.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,20 @@ PreCheck: func() { testAccPreCheck(t, "{{.test_type}}", "{{$.class_version}}") }
},
CheckDestroy: testCheckResourceDestroy,
})
{{- if $.legacy_attributes}}
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t, "apic", "1.0(1e)-") },
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
Steps: []resource.TestStep{
// Create with legacy attribute config
{
Config: testConfig{{$.resourceClassName}}LegacyAttributesWith{{capitalize .class_name}}{{if $.version_mismatch}} + testConfigDataSourceSystem{{end}},
ExpectNonEmptyPlan: false,
},
},
CheckDestroy: testCheckResourceDestroy,
})
{{- end}}
} {{- end}}
{{- else}}
func TestAccResource{{.resourceClassName}}(t *testing.T) {
Expand Down
12 changes: 12 additions & 0 deletions internal/provider/resource_aci_application_epg_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions internal/provider/resource_aci_bridge_domain_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions internal/provider/resource_aci_endpoint_security_group_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31c4cd5

Please sign in to comment.