Skip to content

Commit

Permalink
update testcase
Browse files Browse the repository at this point in the history
Signed-off-by: ziyeqf <[email protected]>
  • Loading branch information
ziyeqf committed Jul 4, 2023
1 parent 14772ce commit d858643
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
},
})
Expand All @@ -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"),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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]
}
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit d858643

Please sign in to comment.