Skip to content

Commit

Permalink
Fix TestAccStorageSignedUrl_accTest (#5200)
Browse files Browse the repository at this point in the history
* allow disabling service accounts

Co-authored-by: upodroid <[email protected]>

* fix typos

* revert warning change

* remove dynamically generated header from test

Co-authored-by: upodroid <[email protected]>

* reinstance the test with a diff header

* fix typo

* fix fmt
  • Loading branch information
upodroid authored Sep 15, 2021
1 parent 79135d5 commit 3abe7e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 3abe7e7

Please sign in to comment.