From a365d3d2f17b668e2d3528bc3fe89eb13462d8c6 Mon Sep 17 00:00:00 2001 From: Aris van Ommeren Date: Tue, 22 Dec 2020 18:19:23 +0100 Subject: [PATCH] Improve test stability --- .../backup_protected_file_share_resource_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azurerm/internal/services/recoveryservices/backup_protected_file_share_resource_test.go b/azurerm/internal/services/recoveryservices/backup_protected_file_share_resource_test.go index 94387651a1c7d..b2495501c39f2 100644 --- a/azurerm/internal/services/recoveryservices/backup_protected_file_share_resource_test.go +++ b/azurerm/internal/services/recoveryservices/backup_protected_file_share_resource_test.go @@ -163,6 +163,10 @@ resource "azurerm_recovery_services_vault" "test" { sku = "Standard" soft_delete_enabled = false + + lifecycle { + ignore_changes = [soft_delete_enabled] // Ignore changes to prevent tests from flakiness + } } resource "azurerm_backup_policy_file_share" "test1" { @@ -325,6 +329,10 @@ resource "azurerm_recovery_services_vault" "test" { sku = "Standard" soft_delete_enabled = false + + lifecycle { + ignore_changes = [soft_delete_enabled] // Ignore changes to prevent tests from flakiness + } } resource "azurerm_backup_policy_file_share" "test" {