Skip to content

Commit 54ea5f0

Browse files
fix: (storage) TestAccStorageObjectAcl_noOwner test case fix (GoogleCloudPlatform#17284)
1 parent c956bb4 commit 54ea5f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mmv1/third_party/terraform/services/storage/resource_storage_object_acl_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ func (t *testRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) {
302302
if err != nil {
303303
return response, err
304304
}
305-
expectedPath := fmt.Sprintf("/storage/v1/b/%s/o/%s", t.bucketName, t.objectName)
306-
if t.done || r.URL.Path != expectedPath || r.Host != "storage.googleapis.com" {
305+
if !r.URL.Query().Has("projection") || response.StatusCode != http.StatusOK {
307306
return response, err
308307
}
309308
t.done = true
@@ -366,6 +365,7 @@ func TestAccStorageObjectAcl_noOwner(t *testing.T) {
366365
{
367366
Config: testGoogleStorageObjectsAclBasic1(bucketName, objectName),
368367
ExpectNonEmptyPlan: true,
368+
PlanOnly: true,
369369
},
370370
},
371371
})

0 commit comments

Comments
 (0)