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

test: use vdcg resource instead vdc_group #872

Merged
Merged
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
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
Loading