Skip to content

Commit

Permalink
Acceptance test implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
SunithaGudisagarIBM1 committed Jun 19, 2023
1 parent ff7b31b commit 19304dc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
13 changes: 9 additions & 4 deletions common/github.com/IBM/vpc-go-sdk/vpcv1/vpc_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func NewVpcV1(options *VpcV1Options) (service *VpcV1, err error) {
}

if options.Version == nil {
options.Version = core.StringPtr("2023-05-23")
options.Version = core.StringPtr("2023-06-19")
}

service = &VpcV1{
Expand Down Expand Up @@ -16634,6 +16634,7 @@ func (vpc *VpcV1) ListVPNGatewaysWithContext(ctx context.Context, listVPNGateway

builder.AddQuery("version", fmt.Sprint(*vpc.Version))
builder.AddQuery("generation", fmt.Sprint(*vpc.generation))
builder.AddQuery("maturity", "development")
if listVPNGatewaysOptions.Start != nil {
builder.AddQuery("start", fmt.Sprint(*listVPNGatewaysOptions.Start))
}
Expand Down Expand Up @@ -16830,6 +16831,7 @@ func (vpc *VpcV1) GetVPNGatewayWithContext(ctx context.Context, getVPNGatewayOpt

builder.AddQuery("version", fmt.Sprint(*vpc.Version))
builder.AddQuery("generation", fmt.Sprint(*vpc.generation))
builder.AddQuery("maturity", "development")

request, err := builder.Build()
if err != nil {
Expand Down Expand Up @@ -16962,6 +16964,7 @@ func (vpc *VpcV1) ListVPNGatewayConnectionsWithContext(ctx context.Context, list

builder.AddQuery("version", fmt.Sprint(*vpc.Version))
builder.AddQuery("generation", fmt.Sprint(*vpc.generation))
builder.AddQuery("maturity", "development")
if listVPNGatewayConnectionsOptions.Status != nil {
builder.AddQuery("status", fmt.Sprint(*listVPNGatewayConnectionsOptions.Status))
}
Expand Down Expand Up @@ -17151,7 +17154,7 @@ func (vpc *VpcV1) GetVPNGatewayConnectionWithContext(ctx context.Context, getVPN

builder.AddQuery("version", fmt.Sprint(*vpc.Version))
builder.AddQuery("generation", fmt.Sprint(*vpc.generation))

builder.AddQuery("maturity", "development")
request, err := builder.Build()
if err != nil {
return
Expand Down Expand Up @@ -17746,6 +17749,7 @@ func (vpc *VpcV1) ListVPNServersWithContext(ctx context.Context, listVPNServersO

builder.AddQuery("version", fmt.Sprint(*vpc.Version))
builder.AddQuery("generation", fmt.Sprint(*vpc.generation))
builder.AddQuery("maturity", "development")
if listVPNServersOptions.Name != nil {
builder.AddQuery("name", fmt.Sprint(*listVPNServersOptions.Name))
}
Expand Down Expand Up @@ -17980,7 +17984,7 @@ func (vpc *VpcV1) GetVPNServerWithContext(ctx context.Context, getVPNServerOptio

builder.AddQuery("version", fmt.Sprint(*vpc.Version))
builder.AddQuery("generation", fmt.Sprint(*vpc.generation))

builder.AddQuery("maturity", "development")
request, err := builder.Build()
if err != nil {
return
Expand Down Expand Up @@ -18416,6 +18420,7 @@ func (vpc *VpcV1) ListVPNServerRoutesWithContext(ctx context.Context, listVPNSer

builder.AddQuery("version", fmt.Sprint(*vpc.Version))
builder.AddQuery("generation", fmt.Sprint(*vpc.generation))
builder.AddQuery("maturity", "development")
if listVPNServerRoutesOptions.Start != nil {
builder.AddQuery("start", fmt.Sprint(*listVPNServerRoutesOptions.Start))
}
Expand Down Expand Up @@ -18623,7 +18628,7 @@ func (vpc *VpcV1) GetVPNServerRouteWithContext(ctx context.Context, getVPNServer

builder.AddQuery("version", fmt.Sprint(*vpc.Version))
builder.AddQuery("generation", fmt.Sprint(*vpc.generation))

builder.AddQuery("maturity", "development")
request, err := builder.Build()
if err != nil {
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ func TestAccIBMISVPNGatewayConnection_basic(t *testing.T) {
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "name", name1),
resource.TestCheckResourceAttrSet(
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "gateway_connection"),
resource.TestCheckResourceAttrSet("ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "lifecycle_state"),
resource.TestCheckResourceAttrSet("ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "health_state"),
),
},
{
Expand Down
2 changes: 2 additions & 0 deletions ibm/service/vpc/resource_ibm_is_vpn_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ func TestAccIBMISVPNGateway_basic(t *testing.T) {
testAccCheckIBMISVPNGatewayExists("ibm_is_vpn_gateway.testacc_vpnGateway", vpnGateway),
resource.TestCheckResourceAttr(
"ibm_is_vpn_gateway.testacc_vpnGateway", "name", name1),
resource.TestCheckResourceAttrSet("ibm_is_vpn_gateway.testacc_vpnGateway", "lifecycle_state"),
resource.TestCheckResourceAttrSet("ibm_is_vpn_gateway.testacc_vpnGateway", "health_state"),
),
},
},
Expand Down
1 change: 1 addition & 0 deletions ibm/service/vpc/resource_ibm_is_vpn_server_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func TestAccIBMIsVPNServerRouteBasic(t *testing.T) {
resource.TestCheckResourceAttrSet("ibm_is_vpn_server_route.is_vpn_server_route", "created_at"),
resource.TestCheckResourceAttrSet("ibm_is_vpn_server_route.is_vpn_server_route", "href"),
resource.TestCheckResourceAttrSet("ibm_is_vpn_server_route.is_vpn_server_route", "lifecycle_state"),
resource.TestCheckResourceAttrSet("ibm_is_vpn_server_route.is_vpn_server_route", "health_state"),
resource.TestCheckResourceAttrSet("ibm_is_vpn_server_route.is_vpn_server_route", "resource_type"),
resource.TestCheckResourceAttrSet("ibm_is_vpn_server_route.is_vpn_server_route", "vpn_route"),
),
Expand Down

0 comments on commit 19304dc

Please sign in to comment.