From d1af80ba89823284c82fdd510fdef792c5f66e8d Mon Sep 17 00:00:00 2001 From: niharika-98 Date: Mon, 28 Oct 2024 03:48:56 +0000 Subject: [PATCH] Fixing bp resource tests --- .../backupdr/data_source_backup_dr_backup_plan_test.go.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup_plan_test.go.tmpl b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup_plan_test.go.tmpl index bd8bc887b45e..1aebe6e073ab 100644 --- a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup_plan_test.go.tmpl +++ b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup_plan_test.go.tmpl @@ -99,6 +99,9 @@ resource "google_backup_dr_backup_plan" "foo" { resource_type= "compute.googleapis.com/Instance" backup_vault = google_backup_dr_backup_vault.my-backup-vault.name depends_on=[ google_backup_dr_backup_vault.my-backup-vault ] + lifecycle { + ignore_changes = [backup_vault] + } backup_rules { rule_id = "rule-1" backup_retention_days = 5