Skip to content

Commit

Permalink
test: use vdcg resource instead vdc_group (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod authored Dec 9, 2024
1 parent bc1ec1b commit 907e80d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/testsacc/edgegw_edgegateway_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ func (r *EdgeGatewayResource) Tests(ctx context.Context) map[testsacc.TestName]f
resource.TestCheckResourceAttrSet(resourceName, "description"),
},
CommonDependencies: func() (resp testsacc.DependenciesConfigResponse) {
resp.Append(GetResourceConfig()[VDCGroupResourceName]().GetDefaultConfig)
resp.Append(GetResourceConfig()[VDCGResourceName]().GetDefaultConfig)
return
},
// ! Create testing
Create: testsacc.TFConfig{
TFConfig: testsacc.GenerateFromTemplate(resourceName, `
resource "cloudavenue_edgegateway" "example_with_vdc_group" {
owner_name = cloudavenue_vdc_group.example.name
owner_name = cloudavenue_vdcg.example.name
tier0_vrf_name = data.cloudavenue_tier0_vrf.example.name
owner_type = "vdc-group"
bandwidth = 25
Expand All @@ -175,7 +175,7 @@ func (r *EdgeGatewayResource) Tests(ctx context.Context) map[testsacc.TestName]f
{
TFConfig: testsacc.GenerateFromTemplate(resourceName, `
resource "cloudavenue_edgegateway" "example_with_vdc_group" {
owner_name = cloudavenue_vdc_group.example.name
owner_name = cloudavenue_vdcg.example.name
tier0_vrf_name = data.cloudavenue_tier0_vrf.example.name
owner_type = "vdc-group"
bandwidth = 5
Expand Down

0 comments on commit 907e80d

Please sign in to comment.