mongodb / terraform-provider-mongodbatlas

Terraform MongoDB Atlas Provider: Deploy, update, and manage MongoDB Atlas infrastructure as code through HashiCorp Terraform
https://registry.terraform.io/providers/mongodb/mongodbatlas
Mozilla Public License 2.0
241 stars 169 forks source link

fix: Calls DeleteExportBucket before checking the status to catch any errors. #2269

Closed marcosuma closed 4 months ago

marcosuma commented 4 months ago

While trying to delete the snapshot export bucket resource, we noticed that the deletion hanged. The cause is due to the fact that we don't call the Delete API before checking the status update.

In addition, I've activated the related tests to be included in the nightly and PR run. There wasn't really any strong reason not to do that, since we can create S3 buckets, policies and anything else needed.

Description

Please include a summary of the fix/feature/change, including any relevant motivation and context.

Link to any related issue(s):

Type of change:

Required Checklist:

Further comments

github-actions[bot] commented 4 months ago

APIx bot: a message has been sent to Docs Slack channel

marcosuma commented 4 months ago

The test TestAccBackupSnapshotExportBucket_basic itself is passing but overall some other tests are failing, also in the nightly run: https://github.com/mongodb/terraform-provider-mongodbatlas/actions/runs/9087917355/job/24976644413

I've tried many times to make them run successfully, but I think it's safe to go ahead and merge this one.