mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[PR #140] [MERGED] Support to queries against all versions (in versioned and not versioned a buckets) #374
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#374
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/140
Author: @dcaba
Created: 11/22/2019
Status: ✅ Merged
Merged: 12/19/2019
Merged by: @fsouza
Base:
master← Head:listingGenerations📝 Commits (6)
c4e41d4basic tests for listing with all-versions queries ready.055cb0dafter doing a real test, object names do not get the generation appended, its just a gsutil output convention. So adapting the test to check generation valuesa610640backend with a basic list test, and list with versions working there. fakeobject tests now almost green, but checking results names because of duplicationsf9da7eastill to review how to check dedup filenames8799848not the same declared slice than initialized one. fmt5e96319adapting to the new shape of functions that changed in previous PRs📊 Changes
6 files changed (+185 additions, -8 deletions)
View changed files
📝
fakestorage/object.go(+5 -3)📝
fakestorage/object_test.go(+160 -0)📝
internal/backend/backend_test.go(+12 -1)📝
internal/backend/fs.go(+2 -1)📝
internal/backend/memory.go(+5 -2)📝
internal/backend/storage.go(+1 -1)📄 Description
note: incremental PR: the review and potential merge should go after https://github.com/fsouza/fake-gcs-server/pull/60
Support for querying all versions, that means multiple generations of each file are expected in versioned buckets where there has been overwrites or deletions
Done:
TestObjectCRUD)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.