3737
3838 RecoveryProtectedDatabaseDataSourceRepresentation = map [string ]interface {}{
3939 "compartment_id" : acctest.Representation {RepType : acctest .Required , Create : `${var.compartment_id}` },
40- "backup_cloud_location" : acctest.Representation {RepType : acctest .Optional , Create : `OCI` },
4140 "display_name" : acctest.Representation {RepType : acctest .Optional , Create : `displayName` , Update : `displayName2` },
4241 "id" : acctest.Representation {RepType : acctest .Optional , Create : `${oci_recovery_protected_database.test_protected_database.id}` },
4342 "protection_policy_id" : acctest.Representation {RepType : acctest .Optional , Create : `${data.oci_recovery_protection_policy.test_protection_policy.id}` },
@@ -62,12 +61,12 @@ var (
6261 "deletion_schedule" : acctest.Representation {RepType : acctest .Optional , Create : `DELETE_AFTER_72_HOURS` },
6362 "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"bar-key" : "value" }, Update : map [string ]string {"Department" : "Accounting" }},
6463 "is_redo_logs_shipped" : acctest.Representation {RepType : acctest .Optional , Create : `false` , Update : `true` },
64+ "subscription_id" : acctest.Representation {RepType : acctest .Optional , Create : `ocid1.organizationssubscription.oc1..amaaaaaa6jqx4paaa2rxk42owtrtvwkhauvoqb2equbymlvdrlv5tclvvvta` , Update : `ocid1.organizationssubscription.oc1..amaaaaaa6jqx4paaa2rxk42owtrtvwkhauvoqb2equbymlvdrlv5tclvvita` },
6565 "lifecycle" : acctest.RepresentationGroup {RepType : acctest .Required , Group : recoveryIgnoreDefinedTagsRepresentation },
6666 }
6767 RecoveryProtectedDatabaseRecoveryServiceSubnetsRepresentation = map [string ]interface {}{
6868 "recovery_service_subnet_id" : acctest.Representation {RepType : acctest .Required , Create : `${data.oci_recovery_recovery_service_subnet.test_recovery_service_subnet.id}` },
6969 }
70-
7170 RecoveryProtectedDatabaseResourceDependencies = acctest .GenerateResourceFromRepresentationMap ("oci_core_subnet" , "test_subnet" , acctest .Required , acctest .Create , CoreSubnetRepresentation ) +
7271 acctest .GenerateResourceFromRepresentationMap ("oci_core_vcn" , "test_vcn" , acctest .Required , acctest .Create , CoreVcnRepresentation ) +
7372 acctest .GenerateResourceFromRepresentationMap ("oci_recovery_protection_policy" , "test_protection_policy" , acctest .Required , acctest .Create , RecoveryProtectionPolicyRepresentation ) +
@@ -165,6 +164,7 @@ func TestRecoveryProtectedDatabaseResource_basic(t *testing.T) {
165164 resource .TestCheckResourceAttrSet (resourceName , "protection_policy_id" ),
166165 resource .TestCheckResourceAttr (resourceName , "recovery_service_subnets.#" , "1" ),
167166 resource .TestCheckResourceAttrSet (resourceName , "recovery_service_subnets.0.recovery_service_subnet_id" ),
167+ resource .TestCheckResourceAttrSet (resourceName , "subscription_id" ),
168168 resource .TestCheckResourceAttrSet (resourceName , "vpc_user_name" ),
169169
170170 func (s * terraform.State ) (err error ) {
@@ -200,6 +200,7 @@ func TestRecoveryProtectedDatabaseResource_basic(t *testing.T) {
200200 resource .TestCheckResourceAttrSet (resourceName , "protection_policy_id" ),
201201 resource .TestCheckResourceAttr (resourceName , "recovery_service_subnets.#" , "1" ),
202202 resource .TestCheckResourceAttrSet (resourceName , "recovery_service_subnets.0.recovery_service_subnet_id" ),
203+ resource .TestCheckResourceAttrSet (resourceName , "subscription_id" ),
203204 resource .TestCheckResourceAttrSet (resourceName , "vpc_user_name" ),
204205
205206 func (s * terraform.State ) (err error ) {
@@ -230,6 +231,7 @@ func TestRecoveryProtectedDatabaseResource_basic(t *testing.T) {
230231 resource .TestCheckResourceAttrSet (resourceName , "protection_policy_id" ),
231232 resource .TestCheckResourceAttr (resourceName , "recovery_service_subnets.#" , "1" ),
232233 resource .TestCheckResourceAttrSet (resourceName , "recovery_service_subnets.0.recovery_service_subnet_id" ),
234+ resource .TestCheckResourceAttrSet (resourceName , "subscription_id" ),
233235 resource .TestCheckResourceAttrSet (resourceName , "vpc_user_name" ),
234236
235237 func (s * terraform.State ) (err error ) {
@@ -248,7 +250,6 @@ func TestRecoveryProtectedDatabaseResource_basic(t *testing.T) {
248250 compartmentIdVariableStr + RecoveryProtectedDatabaseResourceStaticDependencies +
249251 acctest .GenerateResourceFromRepresentationMap ("oci_recovery_protected_database" , "test_protected_database" , acctest .Optional , acctest .Update , RecoveryProtectedDatabaseRepresentation ),
250252 Check : acctest .ComposeAggregateTestCheckFuncWrapper (
251- resource .TestCheckResourceAttr (datasourceName , "backup_cloud_location" , "OCI" ),
252253 resource .TestCheckResourceAttr (datasourceName , "compartment_id" , compartmentId ),
253254 resource .TestCheckResourceAttr (datasourceName , "display_name" , "displayName2" ),
254255 resource .TestCheckResourceAttrSet (datasourceName , "id" ),
@@ -268,7 +269,6 @@ func TestRecoveryProtectedDatabaseResource_basic(t *testing.T) {
268269 Check : acctest .ComposeAggregateTestCheckFuncWrapper (
269270 resource .TestCheckResourceAttrSet (singularDatasourceName , "protected_database_id" ),
270271
271- resource .TestCheckResourceAttrSet (singularDatasourceName , "backup_cloud_location" ),
272272 resource .TestCheckResourceAttr (singularDatasourceName , "compartment_id" , compartmentId ),
273273 resource .TestCheckResourceAttr (singularDatasourceName , "database_size" , "S" ),
274274 resource .TestCheckResourceAttr (singularDatasourceName , "db_unique_name" , "dbUniqueName" ),
0 commit comments