From 0ed9f48caf79c0ed76ef60c7e649933334ab4b98 Mon Sep 17 00:00:00 2001 From: sinbai Date: Wed, 18 Dec 2024 16:29:37 +0800 Subject: [PATCH] fix test --- ...naged_instance_failover_group_resource_test.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_failover_group_resource_test.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_failover_group_resource_test.go index 271d16afc139..14c972f96c48 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_failover_group_resource_test.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_failover_group_resource_test.go @@ -24,13 +24,6 @@ func TestAccMsSqlManagedInstanceFailoverGroup_update(t *testing.T) { r := MsSqlManagedInstanceFailoverGroupResource{} data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: MsSqlManagedInstanceResource{}.dnsZonePartner(data), - }, - { - // It speeds up deletion to remove the explicit dependency between the instances - Config: MsSqlManagedInstanceResource{}.emptyDnsZonePartner(data), - }, { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( @@ -45,10 +38,6 @@ func TestAccMsSqlManagedInstanceFailoverGroup_update(t *testing.T) { ), }, data.ImportStep(), - { - // disconnect - Config: MsSqlManagedInstanceResource{}.emptyDnsZonePartner(data), - }, }) } @@ -136,6 +125,7 @@ resource "azurerm_public_ip" "test" { location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name allocation_method = "Dynamic" + sku = "Basic" } resource "azurerm_virtual_network_gateway" "test" { @@ -179,6 +169,7 @@ resource "azurerm_public_ip" "secondary" { location = azurerm_resource_group.secondary.location resource_group_name = azurerm_resource_group.secondary.name allocation_method = "Dynamic" + sku = "Basic" } resource "azurerm_virtual_network_gateway" "secondary" { @@ -209,5 +200,5 @@ resource "azurerm_virtual_network_gateway_connection" "secondary" { shared_key = var.shared_key } -`, MsSqlManagedInstanceResource{}.emptyDnsZonePartner(data), data.RandomInteger) +`, MsSqlManagedInstanceResource{}.dnsZonePartner(data), data.RandomInteger) }