mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #144] [MERGED] Support for bucket creation time #376
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#376
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/144
Author: @dcaba
Created: 11/29/2019
Status: ✅ Merged
Merged: 12/20/2019
Merged by: @fsouza
Base:
master← Head:bucketCreationTime📝 Commits (6)
7aaec68extending a test to cover rewrite when source may be an old generation. Making test to fail29c16e5as happened with other tests, we had to decouple the copy from generation tests in the end, as we need to create a bucket manually with versioning vs letting the mock to create non versioned buckets when an object refers to them5c1ddbfretrieving specific generations when required2d45aaeadapting to the new CreateBucket contract8416ee0PR feedback - unneded error printing09b361bsupport to bucket creation dates for both mem and disk buckets, including tests📊 Changes
9 files changed (+205 additions, -24 deletions)
View changed files
📝
fakestorage/bucket.go(+7 -2)📝
fakestorage/bucket_test.go(+5 -1)📝
fakestorage/object.go(+16 -1)📝
fakestorage/object_test.go(+130 -0)📝
fakestorage/response.go(+12 -10)📝
internal/backend/backend_test.go(+15 -4)📝
internal/backend/bucket.go(+3 -0)📝
internal/backend/fs.go(+13 -2)📝
internal/backend/memory.go(+4 -4)📄 Description
Again, incremental PR: to be considered after: https://github.com/fsouza/fake-gcs-server/pull/143
This time not connected to versioning: extending the bucket representation in the memory engine to store the original bucket creation date, while in FS we are using the bucket root dir ctime to fill that field (and that is wrong, but persisting bucket metadata in that engine in a magic file looks overkilling in the current state), and extending then responses.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.