From 2b730dbf667d5e52484c3ca3a8798d8d9a2b80c8 Mon Sep 17 00:00:00 2001 From: EspenAlbert Date: Thu, 18 Jul 2024 14:17:49 +0100 Subject: [PATCH] test: fix usage of replication_spec.id -> replication_spec.external_id --- .../resource_backup_compliance_policy_test.go | 2 +- .../cloudbackupschedule/resource_cloud_backup_schedule_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/service/backupcompliancepolicy/resource_backup_compliance_policy_test.go b/internal/service/backupcompliancepolicy/resource_backup_compliance_policy_test.go index 310793e882..15b66d392d 100644 --- a/internal/service/backupcompliancepolicy/resource_backup_compliance_policy_test.go +++ b/internal/service/backupcompliancepolicy/resource_backup_compliance_policy_test.go @@ -398,7 +398,7 @@ func configClusterWithBackupSchedule(projectName, orgID, projectOwnerID string, cloud_provider = "AWS" frequencies = ["DAILY"] region_name = "US_WEST_1" - replication_spec_id = one(%[2]s.replication_specs).id + replication_spec_id = one(%[2]s.replication_specs).external_id should_copy_oplogs = false } } diff --git a/internal/service/cloudbackupschedule/resource_cloud_backup_schedule_test.go b/internal/service/cloudbackupschedule/resource_cloud_backup_schedule_test.go index 0e150cb05b..0046578459 100644 --- a/internal/service/cloudbackupschedule/resource_cloud_backup_schedule_test.go +++ b/internal/service/cloudbackupschedule/resource_cloud_backup_schedule_test.go @@ -547,7 +547,7 @@ func configCopySettings(terraformStr, projectID, clusterResourceName string, emp "YEARLY", "ON_DEMAND"] region_name = "US_EAST_1" - replication_spec_id = %[1]s.replication_specs.*.id[0] + replication_spec_id = %[1]s.replication_specs.*.external_id[0] should_copy_oplogs = true }`, clusterResourceName) }