Skip to content

Commit fb63673

Browse files
committed
Revert "Reapply "Added - Support for Autonomous Recovery Service - Long Term Archive Feature""
This reverts commit 75afbe3.
1 parent dfea10b commit fb63673

19 files changed

+4
-1739
lines changed

examples/recovery/long_term_backup/main.tf

Lines changed: 0 additions & 83 deletions
This file was deleted.

internal/integrationtest/recovery_long_term_backup_test.go

Lines changed: 0 additions & 371 deletions
This file was deleted.

internal/integrationtest/recovery_protected_database_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ var (
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"),

internal/service/recovery/recovery_export.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,10 @@ var exportRecoveryProtectionPolicyHints = &tf_export.TerraformResourceHints{
4949
},
5050
}
5151

52-
var exportRecoveryLongTermBackupHints = &tf_export.TerraformResourceHints{
53-
ResourceClass: "oci_recovery_long_term_backup",
54-
DatasourceClass: "oci_recovery_long_term_backups",
55-
DatasourceItemsAttr: "long_term_backup_collection",
56-
IsDatasourceCollection: true,
57-
ResourceAbbreviation: "long_term_backup",
58-
RequireResourceRefresh: true,
59-
DiscoverableLifecycleStates: []string{
60-
string(oci_recovery.LongTermBackupLifecycleStateActive),
61-
},
62-
}
63-
6452
var recoveryResourceGraph = tf_export.TerraformResourceGraph{
6553
"oci_identity_compartment": {
6654
{TerraformResourceHints: exportRecoveryRecoveryServiceSubnetHints},
6755
{TerraformResourceHints: exportRecoveryProtectedDatabaseHints},
6856
{TerraformResourceHints: exportRecoveryProtectionPolicyHints},
69-
{TerraformResourceHints: exportRecoveryLongTermBackupHints},
7057
},
7158
}

internal/service/recovery/recovery_long_term_backup_data_source.go

Lines changed: 0 additions & 147 deletions
This file was deleted.

0 commit comments

Comments
 (0)