From 3abe7e7c17961ebe0a5e57aef8d9ac4ac1e70cad Mon Sep 17 00:00:00 2001 From: Mahamed Date: Wed, 15 Sep 2021 23:02:53 +0100 Subject: [PATCH] Fix TestAccStorageSignedUrl_accTest (#5200) * allow disabling service accounts Co-authored-by: upodroid * fix typos * revert warning change * remove dynamically generated header from test Co-authored-by: upodroid * reinstance the test with a diff header * fix typo * fix fmt --- .../tests/data_source_storage_object_signed_url_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mmv1/third_party/terraform/tests/data_source_storage_object_signed_url_test.go b/mmv1/third_party/terraform/tests/data_source_storage_object_signed_url_test.go index 780ddeffddd6..a5aebe4d6feb 100644 --- a/mmv1/third_party/terraform/tests/data_source_storage_object_signed_url_test.go +++ b/mmv1/third_party/terraform/tests/data_source_storage_object_signed_url_test.go @@ -124,8 +124,8 @@ func TestAccStorageSignedUrl_accTest(t *testing.T) { bucketName := fmt.Sprintf("tf-test-bucket-%d", randInt(t)) headers := map[string]string{ - "x-goog-test": "foo", - "x-goog-if-generation-match": "1", + "x-goog-test": "foo", + "x-goog-if-metageneration-match": "1", } vcrTest(t, resource.TestCase{ @@ -248,7 +248,7 @@ data "google_storage_object_signed_url" "story_url_w_headers" { path = google_storage_bucket_object.story.name extension_headers = { x-goog-test = "foo" - x-goog-if-generation-match = 1 + x-goog-if-metageneration-match = 1 } }