From d858643d393f7b5ad4043854a47bf6ca8f9211fa Mon Sep 17 00:00:00 2001 From: ziyeqf <51212351+ziyeqf@users.noreply.github.com> Date: Tue, 4 Jul 2023 15:17:25 +0800 Subject: [PATCH] update testcase Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com> --- ...e_recovery_replication_recovery_plan_data_source_test.go | 6 ------ ...site_recovery_replication_recovery_plan_resource_test.go | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/internal/services/recoveryservices/site_recovery_replication_recovery_plan_data_source_test.go b/internal/services/recoveryservices/site_recovery_replication_recovery_plan_data_source_test.go index 99ea10c1e384..89fb2a053247 100644 --- a/internal/services/recoveryservices/site_recovery_replication_recovery_plan_data_source_test.go +++ b/internal/services/recoveryservices/site_recovery_replication_recovery_plan_data_source_test.go @@ -22,9 +22,6 @@ func TestAccDataSourceSiteRecoveryReplicationRecoveryPlan_basic(t *testing.T) { check.That(data.ResourceName).Key("recovery_vault_id").Exists(), check.That(data.ResourceName).Key("source_recovery_fabric_id").Exists(), check.That(data.ResourceName).Key("target_recovery_fabric_id").Exists(), - check.That(data.ResourceName).Key("recovery_group.0.type").HasValue("Shutdown"), - check.That(data.ResourceName).Key("recovery_group.1.type").HasValue("Failover"), - check.That(data.ResourceName).Key("recovery_group.2.type").HasValue("Boot"), ), }, }) @@ -42,9 +39,6 @@ func TestAccDataSourceSiteRecoveryReplicationRecoveryPlan_withZones(t *testing.T check.That(data.ResourceName).Key("recovery_vault_id").Exists(), check.That(data.ResourceName).Key("source_recovery_fabric_id").Exists(), check.That(data.ResourceName).Key("target_recovery_fabric_id").Exists(), - check.That(data.ResourceName).Key("recovery_group.0.type").HasValue("Shutdown"), - check.That(data.ResourceName).Key("recovery_group.1.type").HasValue("Failover"), - check.That(data.ResourceName).Key("recovery_group.2.type").HasValue("Boot"), check.That(data.ResourceName).Key("azure_to_azure_settings.0.primary_zone").HasValue("1"), check.That(data.ResourceName).Key("azure_to_azure_settings.0.recovery_zone").HasValue("2"), ), diff --git a/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource_test.go b/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource_test.go index cdea21e2e807..bb5c298ad9c1 100644 --- a/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource_test.go +++ b/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource_test.go @@ -122,7 +122,6 @@ func TestAccSiteRecoveryReplicationRecoveryPlan_withMultiBootGroup(t *testing.T) Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("boot_recovery_group.0.replicated_protected_items.#").HasValue("1"), - check.That(data.ResourceName).Key("boot_recovery_group.1.type").HasValue("Boot"), ), }, data.ImportStep(), @@ -525,7 +524,6 @@ resource "azurerm_site_recovery_replication_recovery_plan" "test" { failover_recovery_group {} boot_recovery_group { - type = "Boot" replicated_protected_items = [azurerm_site_recovery_replicated_vm.test.id] } @@ -634,7 +632,7 @@ resource "azurerm_site_recovery_replication_recovery_plan" "test" { shutdown_recovery_group {} - recovery_group {} + failover_recovery_group {} boot_recovery_group { replicated_protected_items = [azurerm_site_recovery_replicated_vm.test.id]