Skip to content

Commit e207aad

Browse files
fix backup vault tests (#13075) (#21414)
[upstream:60f84e3fc473f0b1fed0803e93210377897e7100] Signed-off-by: Modular Magician <[email protected]>
1 parent 379ddea commit e207aad

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.changelog/13075.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/services/backupdr/data_source_backup_dr_backup_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ import (
1111
"github.com/hashicorp/terraform-provider-google/google/envvar"
1212
)
1313

14+
// this test cannot be ran locally without seeding your environment with a backup vault and scheduling the backup of a compute instance
15+
// to generate a unique datasourceId, that this test would need to be modified to use. the values in this test correspond to those used
16+
// in our testing processes.
1417
func TestAccDataSourceGoogleCloudBackupDRBackup_basic(t *testing.T) {
1518
t.Parallel()
1619

1720
project := envvar.GetTestProjectFromEnv()
1821
location := "us-central1"
1922
backupVaultId := "bv-test"
20-
dataSourceId := "ds-test"
23+
dataSourceId := "56b93b14529b77d764b21b2251e1ea8f0006e8dd"
2124

2225
name := fmt.Sprintf("projects/%s/locations/%s/backupVaults/%s/dataSources/%s/backups", project, location, backupVaultId, dataSourceId)
2326

google/services/backupdr/data_source_backup_dr_data_source_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import (
1111
"github.com/hashicorp/terraform-provider-google/google/envvar"
1212
)
1313

14+
// this test cannot be ran locally without seeding your environment with a backup vault and scheduling the backup of a compute instance
15+
// to generate a unique datasourceId, that this test would need to be modified to use. the values in this test correspond to those used
16+
// in our testing processes.
1417
func TestAccDataSourceGoogleCloudBackupDRDataSource_basic(t *testing.T) {
1518
t.Parallel()
1619

@@ -50,7 +53,7 @@ data "google_backup_dr_data_source" "foo" {
5053
project = data.google_project.project.project_id
5154
location = "us-central1"
5255
backup_vault_id = "bv-test"
53-
data_source_id = "ds-test"
56+
data_source_id = "56b93b14529b77d764b21b2251e1ea8f0006e8dd"
5457
}
5558
5659
`, context)

0 commit comments

Comments
 (0)