Skip to content

Commit aa319e6

Browse files
akinrosslhercot
authored andcommitted
[ignore] add test case for creation of bd/epg/esg with legacy attributes
1 parent 5437382 commit aa319e6

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

gen/templates/resource_test.go.tmpl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,20 @@ PreCheck: func() { testAccPreCheck(t, "{{.test_type}}", "{{$.class_version}}") }
861861
},
862862
CheckDestroy: testCheckResourceDestroy,
863863
})
864+
{{- if $.legacy_attributes}}
865+
resource.Test(t, resource.TestCase{
866+
PreCheck: func() { testAccPreCheck(t, "apic", "1.0(1e)-") },
867+
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
868+
Steps: []resource.TestStep{
869+
// Create with legacy attribute config
870+
{
871+
Config: testConfig{{$.resourceClassName}}LegacyAttributesWith{{capitalize .class_name}}{{if $.version_mismatch}} + testConfigDataSourceSystem{{end}},
872+
ExpectNonEmptyPlan: false,
873+
},
874+
},
875+
CheckDestroy: testCheckResourceDestroy,
876+
})
877+
{{- end}}
864878
} {{- end}}
865879
{{- else}}
866880
func TestAccResource{{.resourceClassName}}(t *testing.T) {

internal/provider/resource_aci_application_epg_test.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_aci_bridge_domain_test.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_aci_endpoint_security_group_test.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)