mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[PR #143] [MERGED] Rewrite with generation support #373
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#373
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/143
Author: @dcaba
Created: 11/28/2019
Status: ✅ Merged
Merged: 12/20/2019
Merged by: @fsouza
Base:
master← Head:rewriteWithGenerationSupport📝 Commits (5)
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 printing📊 Changes
2 files changed (+146 additions, -1 deletions)
View changed files
📝
fakestorage/object.go(+16 -1)📝
fakestorage/object_test.go(+130 -0)📄 Description
note: again incremental PR: the review and potential merge should go after https://github.com/fsouza/fake-gcs-server/pull/140
An easy one: just looking and considering the optional query arg that may come with rewrite (copy) requests to specify an specific generation of an object. Tests decoupled from the ones that work without versioning neither specific generations, so we initialize the buckets accordingly. Extra test scenario considered for rewrite object (against the same active object)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.