5858 "display_name" : acctest.Representation {RepType : acctest .Required , Create : `Switchover from PHX to IAD` , Update : `displayName2` },
5959 "dr_protection_group_id" : acctest.Representation {RepType : acctest .Required , Create : `${oci_disaster_recovery_dr_protection_group.test_peer.id}` },
6060 "type" : acctest.Representation {RepType : acctest .Required , Create : `SWITCHOVER` },
61- "defined_tags" : acctest.Representation {RepType : acctest .Optional , Create : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}` , Update : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}` },
62- "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"Department" : "Finance" }, Update : map [string ]string {"Department" : "Accounting" }},
61+ // "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`},
62+ "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"Department" : "Finance" }, Update : map [string ]string {"Department" : "Accounting" }},
6363 //"source_plan_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_disaster_recovery_source_plan.test_source_plan.id}`},
6464 "refresh_trigger" : acctest.Representation {RepType : acctest .Optional , Create : `0` , Update : `1` },
6565 "verify_trigger" : acctest.Representation {RepType : acctest .Optional , Create : `0` , Update : `1` },
7070 "display_name" : acctest.Representation {RepType : acctest .Required , Create : `Switchover from PHX to IAD` , Update : `displayName2` },
7171 "dr_protection_group_id" : acctest.Representation {RepType : acctest .Required , Create : `${oci_disaster_recovery_dr_protection_group.test_peer.id}` },
7272 "type" : acctest.Representation {RepType : acctest .Required , Create : `SWITCHOVER` },
73- "defined_tags" : acctest.Representation {RepType : acctest .Optional , Create : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}` , Update : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}` },
74- "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"Department" : "Finance" }, Update : map [string ]string {"Department" : "Accounting" }},
73+ // "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`},
74+ "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"Department" : "Finance" }, Update : map [string ]string {"Department" : "Accounting" }},
7575 //"source_plan_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_disaster_recovery_source_plan.test_source_plan.id}`},
7676 "lifecycle" : acctest.RepresentationGroup {RepType : acctest .Optional , Group : DefinedTagsIgnoreRepresentation },
7777 }
@@ -97,11 +97,10 @@ var (
9797 `
9898
9999 DisasterRecoveryDrPlanResourceDependencies = acctest .GenerateResourceFromRepresentationMap ("oci_disaster_recovery_dr_protection_group" , "test_peer" , acctest .Optional , acctest .Create , DisasterRecoveryPeerDrProtectionGroupRepresentation ) +
100- OKEClusterDependencyConfig +
101100 ObjectStorageBucketDependencyConfig +
102101 VolumeGroupDependencyConfig +
103- AvailabilityDomainConfig +
104- DefinedTagsDependencies
102+ AvailabilityDomainConfig
103+ // DefinedTagsDependencies
105104)
106105
107106// issue-routing-tag: disaster_recovery/default
@@ -239,7 +238,7 @@ func TestDisasterRecoveryDrPlanResource_basic(t *testing.T) {
239238 resource .TestCheckResourceAttrSet (resourceName , "peer_dr_protection_group_id" ),
240239 resource .TestCheckResourceAttrSet (resourceName , "peer_region" ),
241240 //resource.TestCheckResourceAttrSet(resourceName, "source_plan_id"),
242- resource .TestCheckResourceAttr (resourceName , "plan_groups.#" , "4 " ),
241+ resource .TestCheckResourceAttr (resourceName , "plan_groups.#" , "3 " ),
243242 resource .TestCheckResourceAttrSet (resourceName , "state" ),
244243 resource .TestCheckResourceAttrSet (resourceName , "time_created" ),
245244 resource .TestCheckResourceAttrSet (resourceName , "time_updated" ),
@@ -272,7 +271,7 @@ func TestDisasterRecoveryDrPlanResource_basic(t *testing.T) {
272271 resource .TestCheckResourceAttrSet (resourceName , "peer_dr_protection_group_id" ),
273272 resource .TestCheckResourceAttrSet (resourceName , "peer_region" ),
274273 //resource.TestCheckResourceAttrSet(resourceName, "source_plan_id"),
275- resource .TestCheckResourceAttr (resourceName , "plan_groups.#" , "4 " ),
274+ resource .TestCheckResourceAttr (resourceName , "plan_groups.#" , "3 " ),
276275 resource .TestCheckResourceAttrSet (resourceName , "state" ),
277276 resource .TestCheckResourceAttrSet (resourceName , "time_created" ),
278277 resource .TestCheckResourceAttrSet (resourceName , "time_updated" ),
@@ -339,7 +338,7 @@ func TestDisasterRecoveryDrPlanResource_basic(t *testing.T) {
339338 },
340339 // Disassociate DrProtectionGroup
341340 {
342- Config : config + compartmentIdVariableStr + DisasterRecoveryDrPlanResourceDependencies +
341+ Config : config + compartmentIdVariableStr + DisasterRecoveryDrPlanExecutionResourceDependencies +
343342 DrProtectionGroupWithDisassociateTriggerConfig ,
344343 Check : acctest .ComposeAggregateTestCheckFuncWrapper (
345344 func (s * terraform.State ) (err error ) {
0 commit comments