Skip to content

Commit

Permalink
test: enable vpc sweepers (#1529)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-savciuc authored Jan 12, 2024
1 parent 89689cc commit 76a997b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion internal/sdkprovider/service/vpc/sweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func sweepVPCs(ctx context.Context, client *aiven.Client) func(string) error {
}

for _, vpc := range vpcs {

err := client.VPCs.Delete(ctx, projectName, vpc.ProjectVPCID)
if common.IsCritical(err) {
return fmt.Errorf("error deleting vpc %s: %s", vpc.ProjectVPCID, err)
Expand Down
1 change: 1 addition & 0 deletions internal/sweep/sweep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
_ "github.com/aiven/terraform-provider-aiven/internal/sdkprovider/service/redis"
_ "github.com/aiven/terraform-provider-aiven/internal/sdkprovider/service/serviceintegration"
_ "github.com/aiven/terraform-provider-aiven/internal/sdkprovider/service/staticip"
_ "github.com/aiven/terraform-provider-aiven/internal/sdkprovider/service/vpc"
)

func TestMain(m *testing.M) {
Expand Down

0 comments on commit 76a997b

Please sign in to comment.