Skip to content

Commit e72645e

Browse files
Add uniform bucket level access to fix local testing (#10646) (#18080)
[upstream:9c5199976faf9e8f9d927fde255b42e3eedd6c01] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent cd11e39 commit e72645e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

google/services/cloudfunctions/resource_cloudfunctions_function_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ func testAccCloudFunctionsFunction_basic(functionName string, bucketName string,
587587
resource "google_storage_bucket" "bucket" {
588588
name = "%s"
589589
location = "US"
590+
uniform_bucket_level_access = true
590591
}
591592
592593
resource "google_storage_bucket_object" "archive" {
@@ -627,6 +628,7 @@ func testAccCloudFunctionsFunction_updated(functionName string, bucketName strin
627628
resource "google_storage_bucket" "bucket" {
628629
name = "%s"
629630
location = "US"
631+
uniform_bucket_level_access = true
630632
}
631633
632634
resource "google_storage_bucket_object" "archive" {
@@ -680,6 +682,7 @@ func testAccCloudFunctionsFunction_buildworkerpool(functionName string, bucketNa
680682
resource "google_storage_bucket" "bucket" {
681683
name = "%s"
682684
location = "US"
685+
uniform_bucket_level_access = true
683686
}
684687
685688
resource "google_storage_bucket_object" "archive" {
@@ -719,6 +722,7 @@ func testAccCloudFunctionsFunction_pubsub(functionName string, bucketName string
719722
resource "google_storage_bucket" "bucket" {
720723
name = "%s"
721724
location = "US"
725+
uniform_bucket_level_access = true
722726
}
723727
724728
resource "google_storage_bucket_object" "archive" {
@@ -759,6 +763,7 @@ data "google_client_config" "current" {
759763
resource "google_storage_bucket" "bucket" {
760764
name = "%s"
761765
location = "US"
766+
uniform_bucket_level_access = true
762767
}
763768
764769
resource "google_storage_bucket_object" "archive" {
@@ -792,6 +797,7 @@ func testAccCloudFunctionsFunction_bucketNoRetry(functionName string, bucketName
792797
resource "google_storage_bucket" "bucket" {
793798
name = "%s"
794799
location = "US"
800+
uniform_bucket_level_access = true
795801
}
796802
797803
resource "google_storage_bucket_object" "archive" {
@@ -822,6 +828,7 @@ func testAccCloudFunctionsFunction_firestore(functionName string, bucketName str
822828
resource "google_storage_bucket" "bucket" {
823829
name = "%s"
824830
location = "US"
831+
uniform_bucket_level_access = true
825832
}
826833
827834
resource "google_storage_bucket_object" "archive" {
@@ -871,6 +878,7 @@ func testAccCloudFunctionsFunction_serviceAccountEmail(functionName, bucketName,
871878
resource "google_storage_bucket" "bucket" {
872879
name = "%s"
873880
location = "US"
881+
uniform_bucket_level_access = true
874882
}
875883
876884
resource "google_storage_bucket_object" "archive" {
@@ -922,6 +930,7 @@ resource "google_vpc_access_connector" "%s" {
922930
resource "google_storage_bucket" "bucket" {
923931
name = "%s"
924932
location = "US"
933+
uniform_bucket_level_access = true
925934
}
926935
927936
resource "google_storage_bucket_object" "archive" {

0 commit comments

Comments
 (0)