Skip to content

Commit f684ad4

Browse files
Terraform Team Automationvarakali
authored andcommitted
Added - Support for Remove dr_plan_execution_type from DR Plan Execution data source
1 parent ac561c4 commit f684ad4

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

examples/disaster_recovery/dr_plan_execution/dr_plan_execution.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ variable "dr_plan_execution_display_name" {
1818
default = "displayName"
1919
}
2020

21-
variable "dr_plan_execution_dr_plan_execution_type" {
22-
default = "SWITCHOVER_PRECHECK"
23-
}
24-
2521
variable "dr_plan_execution_execution_options_are_prechecks_enabled" {
2622
default = false
2723
}
@@ -81,6 +77,5 @@ data "oci_disaster_recovery_dr_plan_executions" "test_dr_plan_executions" {
8177
#Optional
8278
display_name = var.dr_plan_execution_display_name
8379
dr_plan_execution_id = oci_disaster_recovery_dr_plan_execution.test_dr_plan_execution.id
84-
dr_plan_execution_type = var.dr_plan_execution_dr_plan_execution_type
8580
#state = var.dr_plan_execution_state
8681
}

internal/integrationtest/disaster_recovery_dr_plan_execution_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ var (
3939
"dr_protection_group_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_disaster_recovery_dr_protection_group.test_peer.id}`},
4040
"display_name": acctest.Representation{RepType: acctest.Optional, Create: `Precheck Switchover from PHX to IAD`, Update: `displayName2`},
4141
"dr_plan_execution_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_disaster_recovery_dr_plan_execution.test_dr_plan_execution.id}`},
42-
"dr_plan_execution_type": acctest.Representation{RepType: acctest.Optional, Create: `SWITCHOVER_PRECHECK`},
4342
"state": acctest.Representation{RepType: acctest.Optional, Create: `SUCCEEDED`},
4443
"filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: DisasterRecoveryDrPlanExecutionDataSourceFilterRepresentation}}
4544
DisasterRecoveryDrPlanExecutionDataSourceFilterRepresentation = map[string]interface{}{
@@ -205,7 +204,6 @@ func TestDisasterRecoveryDrPlanExecutionResource_basic(t *testing.T) {
205204
Check: acctest.ComposeAggregateTestCheckFuncWrapper(
206205
resource.TestCheckResourceAttr(datasourceName, "display_name", "displayName2"),
207206
resource.TestCheckResourceAttrSet(datasourceName, "dr_plan_execution_id"),
208-
resource.TestCheckResourceAttr(datasourceName, "dr_plan_execution_type", "SWITCHOVER_PRECHECK"),
209207
resource.TestCheckResourceAttrSet(datasourceName, "dr_protection_group_id"),
210208
//resource.TestCheckResourceAttr(datasourceName, "state", "SUCCEEDED"),
211209

internal/service/disaster_recovery/disaster_recovery_dr_plan_executions_data_source.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ func DisasterRecoveryDrPlanExecutionsDataSource() *schema.Resource {
2626
Type: schema.TypeString,
2727
Optional: true,
2828
},
29-
"dr_plan_execution_type": {
30-
Type: schema.TypeString,
31-
Optional: true,
32-
},
3329
"dr_protection_group_id": {
3430
Type: schema.TypeString,
3531
Required: true,
@@ -87,10 +83,6 @@ func (s *DisasterRecoveryDrPlanExecutionsDataSourceCrud) Get() error {
8783
request.DrPlanExecutionId = &tmp
8884
}
8985

90-
if drPlanExecutionType, ok := s.D.GetOkExists("dr_plan_execution_type"); ok {
91-
request.DrPlanExecutionType = oci_disaster_recovery.ListDrPlanExecutionsDrPlanExecutionTypeEnum(drPlanExecutionType.(string))
92-
}
93-
9486
if drProtectionGroupId, ok := s.D.GetOkExists("dr_protection_group_id"); ok {
9587
tmp := drProtectionGroupId.(string)
9688
request.DrProtectionGroupId = &tmp

0 commit comments

Comments
 (0)