Skip to content

Commit

Permalink
modified EndpointSecurityGroupSelector (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: harshthakkar_crest <[email protected]>
  • Loading branch information
RutvikS-crest and harshthakkar_crest committed Dec 28, 2021
1 parent 7cd303b commit abb5c51
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions testacc/resource_aci_fvepselector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ func TestAccAciEndpointSecurityGroupSelector_Basic(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
},
{
Config: CreateAccEndpointSecurityGroupSelectorRemovingRequiredField(),
ExpectError: regexp.MustCompile(`Missing required argument`),
},
{
Config: CreateAccEndpointSecurityGroupSelectorConfigWithRequiredParams(rName, rName),
ExpectError: regexp.MustCompile(`Invalid IP Address`),
Expand Down Expand Up @@ -399,12 +403,12 @@ func CreateAccEndpointSecurityGroupSelectorConfigWithOptionalValues(rName, ip st

func CreateAccEndpointSecurityGroupSelectorRemovingRequiredField() string {
fmt.Println("=== STEP Basic: testing endpoint_security_group_selector creation with optional parameters")
resource := fmt.Sprintf(`
resource := fmt.Sprintln(`
resource "aci_endpoint_security_group_selector" "test" {
description = "created while acceptance testing"
annotation = "orchestrator:terraform_testacc"
annotation = "tag"
name_alias = "test_endpoint_security_group_selector"
name = "test_endpoint_security_group_selector_name"
}
`)

Expand Down

0 comments on commit abb5c51

Please sign in to comment.