Skip to content

Commit

Permalink
Fix 6.0-related VCR failures and skip previously failing ones (#11522) (
Browse files Browse the repository at this point in the history
#8017)

[upstream:01255de735833091f50389b76ccdfab1c3717a46]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 22, 2024
1 parent 5170a9a commit e74c148
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/11522.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ func TestAccCloudFunctionsFunction_cmek(t *testing.T) {
}

func TestAccCloudFunctionsFunction_firestore(t *testing.T) {
// Currently failing
acctest.SkipIfVcr(t)
t.Parallel()
funcResourceName := "google_cloudfunctions_function.function"
functionName := fmt.Sprintf("tf-test-%s", acctest.RandString(t, 10))
Expand Down
2 changes: 2 additions & 0 deletions google-beta/services/compute/resource_compute_disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,8 @@ resource "google_compute_disk" "foobar" {
}

func TestAccComputeDisk_storagePoolSpecified(t *testing.T) {
// Currently failing
acctest.SkipIfVcr(t)
t.Parallel()

storagePoolName := fmt.Sprintf("tf-test-storage-pool-%s", acctest.RandString(t, 10))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2027,6 +2027,8 @@ func TestAccComputeInstanceConfidentialInstanceConfigMain(t *testing.T) {
}

func TestAccComputeInstance_confidentialHyperDiskBootDisk(t *testing.T) {
// Currently failing
acctest.SkipIfVcr(t)
t.Parallel()
kms := acctest.BootstrapKMSKeyWithPurposeInLocationAndName(t, "ENCRYPT_DECRYPT", "us-central1", "tf-bootstrap-hyperdisk-key1")

Expand Down Expand Up @@ -10149,6 +10151,8 @@ resource "google_compute_instance" "foobar" {
}

func TestAccComputeInstance_bootDisk_storagePoolSpecified(t *testing.T) {
// Currently failing
acctest.SkipIfVcr(t)
t.Parallel()

instanceName := fmt.Sprintf("tf-test-instance-%s", acctest.RandString(t, 10))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ func TestAccComputeNetworkFirewallPolicyRule_update(t *testing.T) {
}

func TestAccComputeNetworkFirewallPolicyRule_multipleRules(t *testing.T) {
// Currently failing
acctest.SkipIfVcr(t)
t.Parallel()

context := map[string]interface{}{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestAccContainerClusterDatasource_regional(t *testing.T) {
"enable_tpu": {},
"pod_security_policy_config.#": {},
"deletion_protection": {},
"resource_labels": {},
"resource_labels.%": {},
},
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ resource "google_sourcerepo_repository" "git_repository" {
resource "google_secret_manager_secret" "secret" {
provider = google-beta
secret_id = "secret"
secret_id = "tf-test-secret%{random_suffix}"
replication {
auto {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func TestAccDataprocCluster_basic(t *testing.T) {
}

func TestAccDataprocVirtualCluster_basic(t *testing.T) {
// Currently failing
acctest.SkipIfVcr(t)
t.Parallel()

var cluster dataproc.Cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
)

func TestAccGKEHub2MembershipBinding_gkehubMembershipBindingBasicExample_update(t *testing.T) {
// Currently failing
acctest.SkipIfVcr(t)
t.Parallel()

context := map[string]interface{}{
Expand Down
1 change: 1 addition & 0 deletions google-beta/services/kms/resource_kms_crypto_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ resource "google_project" "acceptance" {
project_id = "%s"
org_id = "%s"
billing_account = "%s"
deletion_policy = "DELETE"
}
resource "google_project_service" "acceptance" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
)

func TestAccNetworkSecurityServerTlsPolicy_networkSecurityServerTlsPolicyBasicExample(t *testing.T) {
acctest.SkipIfVcr(t)
t.Parallel()

context := map[string]interface{}{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func testAccSecurityCenterFolderNotificationConfig_basic(context map[string]inte
resource "google_folder" "folder" {
parent = "organizations/%{org_id}"
display_name = "tf-test-folder-name%{random_suffix}"
deletion_protection = false
}
resource "time_sleep" "wait_1_minute" {
Expand Down Expand Up @@ -99,6 +100,7 @@ func testAccSecurityCenterFolderNotificationConfig_update(context map[string]int
resource "google_folder" "folder" {
parent = "organizations/%{org_id}"
display_name = "tf-test-folder-name%{random_suffix}"
deletion_protection = false
}
resource "google_pubsub_topic" "scc_folder_notification_config" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func testAccSecurityCenterV2FolderNotificationConfig_basic(context map[string]in
resource "google_folder" "folder" {
parent = "organizations/%{org_id}"
display_name = "tf-test-folder-name%{random_suffix}"
deletion_protection = false
}
resource "time_sleep" "wait_1_minute" {
Expand Down Expand Up @@ -100,6 +101,7 @@ func testAccSecurityCenterV2FolderNotificationConfig_update(context map[string]i
resource "google_folder" "folder" {
parent = "organizations/%{org_id}"
display_name = "tf-test-folder-name%{random_suffix}"
deletion_protection = false
}
resource "google_pubsub_topic" "scc_v2_folder_notification_config" {
Expand Down

0 comments on commit e74c148

Please sign in to comment.