Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated vrf and any #15

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func TestAccAciAnyDataSource_Basic(t *testing.T) {
resource.TestCheckResourceAttrPair(dataSourceName, "annotation", resourceName, "annotation"),
resource.TestCheckResourceAttrPair(dataSourceName, "match_t", resourceName, "match_t"),
resource.TestCheckResourceAttrPair(dataSourceName, "pref_gr_memb", resourceName, "pref_gr_memb"),
resource.TestCheckResourceAttrPair(dataSourceName, "vrf_dn", resourceName, "vrf_dn"),
),
},
{
Expand Down
2 changes: 2 additions & 0 deletions testacc/resource_aci_fvany_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestAccAciAny_Basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "annotation", "orchestrator:terraform"),
resource.TestCheckResourceAttr(resourceName, "match_t", "AtleastOne"),
resource.TestCheckResourceAttr(resourceName, "pref_gr_memb", "disabled"),
resource.TestCheckResourceAttr(resourceName, "vrf_dn", fmt.Sprintf("uni/tn-%s/ctx-%s", rName, rName)),
),
},
{
Expand All @@ -48,6 +49,7 @@ func TestAccAciAny_Basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "annotation", "tag_any"),
resource.TestCheckResourceAttr(resourceName, "match_t", "AtmostOne"),
resource.TestCheckResourceAttr(resourceName, "pref_gr_memb", "enabled"),
resource.TestCheckResourceAttr(resourceName, "vrf_dn", fmt.Sprintf("uni/tn-%s/ctx-%s", rName, rName)),
testAccCheckAciAnyIdEqual(&any_default, &any_updated),
),
},
Expand Down
4 changes: 4 additions & 0 deletions testacc/resource_aci_fvctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ func TestAccAciVRF_NegativeCases(t *testing.T) {
Config: CreateAccVRFUpdatedAttr(rName, "pc_enf_dir", randomValue),
ExpectError: regexp.MustCompile(`expected pc_enf_dir to be one of (.)+, got (.)+`),
},
{
Config: CreateAccVRFUpdatedAttr(rName, "pc_enf_pref", randomValue),
ExpectError: regexp.MustCompile(`expected pc_enf_pref to be one of (.)+, got (.)+`),
},
{
Config: CreateAccVRFConfig(rName),
},
Expand Down