From adac1d73c07afbfdd19c3a155d38fcb5ee0b2858 Mon Sep 17 00:00:00 2001 From: xuwu1 Date: Tue, 14 Feb 2023 10:21:16 +0800 Subject: [PATCH] fix TestAccVirtualNetworkGatewayConnection_sitetositeWithoutSharedKey --- .../virtual_network_gateway_connection_resource_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/services/network/virtual_network_gateway_connection_resource_test.go b/internal/services/network/virtual_network_gateway_connection_resource_test.go index 0f7659f03789..46a6dd9f0edb 100644 --- a/internal/services/network/virtual_network_gateway_connection_resource_test.go +++ b/internal/services/network/virtual_network_gateway_connection_resource_test.go @@ -58,7 +58,7 @@ func TestAccVirtualNetworkGatewayConnection_sitetositeWithoutSharedKey(t *testin check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("shared_key"), }) } @@ -396,6 +396,9 @@ resource "azurerm_local_network_gateway" "test" { } resource "azurerm_virtual_network_gateway_connection" "test" { + lifecycle { + ignore_changes = ["shared_key"] + } name = "acctest-${var.random}" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name