From f2169905a8523793550aebcad8199e455d334f71 Mon Sep 17 00:00:00 2001 From: catriona-m <86247157+catriona-m@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:58:12 +0100 Subject: [PATCH] `firewall` - revert ignore_changes for `subnet` and `access_policy` (#26823) --- .../firewall/firewall_data_source_test.go | 4 -- .../firewall/firewall_policy_resource_test.go | 4 -- .../firewall/firewall_resource_test.go | 56 ------------------- 3 files changed, 64 deletions(-) diff --git a/internal/services/firewall/firewall_data_source_test.go b/internal/services/firewall/firewall_data_source_test.go index e139259e9618..5ff09e5c66fe 100644 --- a/internal/services/firewall/firewall_data_source_test.go +++ b/internal/services/firewall/firewall_data_source_test.go @@ -107,10 +107,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { diff --git a/internal/services/firewall/firewall_policy_resource_test.go b/internal/services/firewall/firewall_policy_resource_test.go index b8714807f3ed..2c4c59905483 100644 --- a/internal/services/firewall/firewall_policy_resource_test.go +++ b/internal/services/firewall/firewall_policy_resource_test.go @@ -494,10 +494,6 @@ resource "azurerm_key_vault" "test" { enabled_for_template_deployment = true tenant_id = data.azurerm_client_config.current.tenant_id sku_name = "standard" - - lifecycle { - ignore_changes = [access_policy] - } } resource "azurerm_ip_group" "test_source" { diff --git a/internal/services/firewall/firewall_resource_test.go b/internal/services/firewall/firewall_resource_test.go index e0c2edfbbbe9..d1ed3d24499f 100644 --- a/internal/services/firewall/firewall_resource_test.go +++ b/internal/services/firewall/firewall_resource_test.go @@ -425,10 +425,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -479,10 +475,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -548,10 +540,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -605,10 +593,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -681,10 +665,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -757,10 +737,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -824,10 +800,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -912,10 +884,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -970,10 +938,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -1027,10 +991,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -1084,10 +1044,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -1140,10 +1096,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -1195,10 +1147,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" { @@ -1308,10 +1256,6 @@ resource "azurerm_virtual_network" "test" { address_space = ["10.0.0.0/16"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - - lifecycle { - ignore_changes = [subnet] - } } resource "azurerm_subnet" "test" {