diff --git a/fakestorage/object_test.go b/fakestorage/object_test.go index 76873913f8..038b9b0f25 100644 --- a/fakestorage/object_test.go +++ b/fakestorage/object_test.go @@ -1919,8 +1919,8 @@ func TestServerClientObjectProjection(t *testing.T) { url := fmt.Sprintf("https://storage.googleapis.com/storage/v1/b/%s/o/%s", bucketName, objectName) fullACL := []objectAccessControl{ - {Bucket: bucketName, Object: objectName, Entity: "user-1", Role: "OWNER"}, - {Bucket: bucketName, Object: objectName, Entity: "user-2", Role: "READER"}, + {Bucket: bucketName, Object: objectName, Entity: "user-1", Role: "OWNER", Etag: "RVRhZw==", Kind: "storage#objectAccessControl"}, + {Bucket: bucketName, Object: objectName, Entity: "user-2", Role: "READER", Etag: "RVRhZw==", Kind: "storage#objectAccessControl"}, } t.Run("full projection", func(t *testing.T) { diff --git a/fakestorage/response.go b/fakestorage/response.go index 4c0a87ad3e..48bbf3e4c5 100644 --- a/fakestorage/response.go +++ b/fakestorage/response.go @@ -179,6 +179,8 @@ func getAccessControlsListFromObject(obj ObjectAttrs) []*objectAccessControl { Entity: string(aclRule.Entity), Object: obj.Name, Role: string(aclRule.Role), + Etag: "RVRhZw==", + Kind: "storage#objectAccessControl", } } return aclItems