Skip to content

Commit

Permalink
Update resource_ibm_is_virtual_endpoint_gateway_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
uibm committed Mar 3, 2022
1 parent a306211 commit 636b336
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ibm/service/vpc/resource_ibm_is_virtual_endpoint_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,27 @@ func TestAccIBMISVirtualEndpointGateway_Basic(t *testing.T) {
})
}

func TestAccIBMISVirtualEndpointGateway_CharacterCount(t *testing.T) {
var endpointGateway string
vpcname1 := fmt.Sprintf("tfvpngw-vpc-%d", acctest.RandIntRange(10, 100))
subnetname1 := fmt.Sprintf("tfvpngw-subnet-%d", acctest.RandIntRange(10, 100))
name1 := fmt.Sprintf("tfvpngw-createname-%d-%s", acctest.RandIntRange(10, 100), acctest.RandString(38))
name := "ibm_is_virtual_endpoint_gateway.endpoint_gateway"
resource.Test(t, resource.TestCase{
PreCheck: func() { acc.TestAccPreCheck(t) },
Providers: acc.TestAccProviders,
Steps: []resource.TestStep{
{
Config: testAccCheckisVirtualEndpointGatewayConfigBasic(vpcname1, subnetname1, name1),
Check: resource.ComposeTestCheckFunc(
testAccCheckisVirtualEndpointGatewayExists(name, &endpointGateway),
resource.TestCheckResourceAttr(name, "name", name1),
),
},
},
})
}

func TestAccIBMISVirtualEndpointGateway_Basic_SecurityGroups(t *testing.T) {
var endpointGateway string
vpcname1 := fmt.Sprintf("tfvpngw-vpc-%d", acctest.RandIntRange(10, 100))
Expand Down

0 comments on commit 636b336

Please sign in to comment.