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

azurerm_data_protection_backup_instance_postgresql azurerm_data_protection_backup_instance_disk - disable soft delete to fix acctest #25011

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

teowa
Copy link
Contributor

@teowa teowa commented Feb 26, 2024

fix the error:

------- Stdout: -------
=== RUN   TestAccDataProtectionBackupInstanceDisk_basic
=== PAUSE TestAccDataProtectionBackupInstanceDisk_basic
=== CONT  TestAccDataProtectionBackupInstanceDisk_basic
    testing_new.go:90: Error running post-test destroy, there may be dangling resources: exit status 1
        Error: deleting DataProtection BackupPolicy ("Backup Policy (Subscription: \"*******\"\nResource Group Name: \"acctest-dataprotection-240223231326773774\"\nBackup Vault Name: \"acctest-dataprotection-vault-240223231326773774\"\nBackup Policy Name: \"acctest-dbp-240223231326773774\")"): unexpected status 400 with error: UserErrorPolicyAssociatedWithSoftDeletedItems: Cannot delete Backup Policy as it is associated with soft deleted items
--- FAIL: TestAccDataProtectionBackupInstanceDisk_basic (232.03s)
FAIL

@teowa teowa changed the title azurerm_data_protection_backup_instance_postgresql azurerm_data_protection_backup_instance_disk - fix acctest test azurerm_data_protection_backup_instance_postgresql azurerm_data_protection_backup_instance_disk - fix test Feb 26, 2024
@teowa teowa changed the title azurerm_data_protection_backup_instance_postgresql azurerm_data_protection_backup_instance_disk - fix test azurerm_data_protection_backup_instance_postgresql azurerm_data_protection_backup_instance_disk - disable soft delete to fix acctest Feb 26, 2024
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌤️

@katbyte katbyte merged commit 5db1ef3 into hashicorp:main Feb 26, 2024
29 checks passed
@github-actions github-actions bot added this to the v3.94.0 milestone Feb 26, 2024
rizkybiz pushed a commit to rizkybiz/terraform-provider-azurerm that referenced this pull request Feb 29, 2024
…otection_backup_instance_disk` - disable soft delete to fix acctest (hashicorp#25011)
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants